[llvm] [X86] Prevent NUW flag forwarding in ADD->SUB peephole (PR #201612)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 09:15:24 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 175111 tests passed
* 3436 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.CodeGen/X86/avx512vnni-combine.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/X86/avx512vnni-combine.ll -mtriple=x86_64-unknown-unknown -mcpu=sapphirerapids -verify-machineinstrs | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/X86/avx512vnni-combine.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=x86_64-unknown-unknown -mcpu=sapphirerapids -verify-machineinstrs
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/X86/avx512vnni-combine.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/X86/avx512vnni-combine.ll:192:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: subq $-128, %r8
# |               ^
# | <stdin>:105:15: note: scanning from here
# |  addq $2, %rcx
# |               ^
# | <stdin>:106:2: note: possible intended match here
# |  addq $128, %r8
# |  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/X86/avx512vnni-combine.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           100:  vpaddd -64(%rsi,%r8), %zmm2, %zmm2 
# |           101:  vmovdqa64 %zmm2, -64(%rsi,%r8) 
# |           102:  vpmaddwd (%rdx,%r8), %zmm0, %zmm2 
# |           103:  vpaddd %zmm2, %zmm1, %zmm1 
# |           104:  vmovdqa64 %zmm1, (%rsi,%r8) 
# |           105:  addq $2, %rcx 
# | next:192'0                   X error: no match found
# |           106:  addq $128, %r8 
# | next:192'0     ~~~~~~~~~~~~~~~~
# | next:192'1      ?               possible intended match
# |           107:  cmpq %rcx, %rdi 
# | next:192'0     ~~~~~~~~~~~~~~~~~
# |           108:  jne .LBB2_7 
# | next:192'0     ~~~~~~~~~~~~~
# |           109: .LBB2_3: 
# | next:192'0     ~~~~~~~~~
# |           110:  testb $1, %al 
# | next:192'0     ~~~~~~~~~~~~~~~
# |           111:  je .LBB2_5 
# | next:192'0     ~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/201612


More information about the llvm-commits mailing list