[llvm] fold mov dec/inc to lea +- 1 (PR #185194)

via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 7 07:57:38 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 131921 tests passed
* 2983 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/X86/mov-inc-dec-to-lea.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\mov-inc-dec-to-lea.ll -mtriple=x86_64-unknown-linux-gnu -mattr=+avx2 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\mov-inc-dec-to-lea.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=x86_64-unknown-linux-gnu -mattr=+avx2
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\mov-inc-dec-to-lea.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\mov-inc-dec-to-lea.ll:5:16: error: CHECK-LABEL: expected string not found in input
# | ; CHECK-LABEL: foo:
# |                ^
# | <stdin>:1:1: note: scanning from here
# |  .att_syntax
# | ^
# | <stdin>:2:3: note: possible intended match here
# |  .file "<stdin>"
# |   ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\mov-inc-dec-to-lea.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1:  .att_syntax 
# | label:5'0     X~~~~~~~~~~~~ error: no match found
# |            2:  .file "<stdin>" 
# | label:5'0     ~~~~~~~~~~~~~~~~~
# | label:5'1       ?               possible intended match
# |            3:  .text 
# | label:5'0     ~~~~~~~
# |            4:  .globl mov_dec # -- Begin function mov_dec 
# | label:5'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            5:  .p2align 4 
# | label:5'0     ~~~~~~~~~~~~
# |            6:  .type mov_dec, at function 
# | label:5'0     ~~~~~~~~~~~~~~~~~~~~~~~~~
# |            7: mov_dec: # @mov_dec 
# | label:5'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/185194


More information about the llvm-commits mailing list