[llvm] [AArch64] Extend redundant copy elimination for reg-equal and GPR-zero copies (PR #203714)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 13 09:52:00 PDT 2026


github-actions[bot] wrote:

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

* 135770 tests passed
* 3445 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/AArch64/machine-copy-remove.mir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=aarch64--linux-gnu -run-pass=aarch64-copyelim C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\machine-copy-remove.mir -verify-machineinstrs -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\machine-copy-remove.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=aarch64--linux-gnu -run-pass=aarch64-copyelim 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\machine-copy-remove.mir' -verify-machineinstrs -o -
# 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\AArch64\machine-copy-remove.mir'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\machine-copy-remove.mir:667:14: error: CHECK-NOT: excluded string found in input
# | # CHECK-NOT: COPY
# |              ^
# | <stdin>:2067:8: note: found here
# |  $w0 = COPY $w1
# |        ^~~~
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\machine-copy-remove.mir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          .
# |          .
# |          .
# |       2062:   
# |       2063:  bb.1: 
# |       2064:  successors: %bb.2(0x80000000) 
# |       2065:  liveins: $w1, $x2 
# |       2066:   
# |       2067:  $w0 = COPY $w1 
# | not:667            !~~~      error: no match expected
# |       2068:  STRWui killed $w0, killed $x2, 0 
# |       2069:   
# |       2070:  bb.2: 
# |       2071:  RET_ReallyLR 
# |       2072: ... 
# |          .
# |          .
# |          .
# | >>>>>>
# `-----------------------------
# 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/203714


More information about the llvm-commits mailing list