[llvm] [RISCV] Run EarlyMachineLICM before VLOptimizer to hoist constant splats (PR #210028)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 04:21:26 PDT 2026


github-actions[bot] wrote:

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

* 179066 tests passed
* 3543 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/RISCV/O3-pipeline.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -O3 -debug-pass=Structure < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/O3-pipeline.ll -o /dev/null 2>&1 |    grep -v "Verify generated machine code" |    /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/O3-pipeline.ll --check-prefixes=CHECK,RV32
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -O3 -debug-pass=Structure -o /dev/null
# note: command had no output on stdout or stderr
# executed command: grep -v 'Verify generated machine code'
# 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/RISCV/O3-pipeline.ll --check-prefixes=CHECK,RV32
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/O3-pipeline.ll:109:15: error: CHECK-NEXT: is not on the line after the previous match
# | ; CHECK-NEXT: Early Machine Loop Invariant Code Motion
# |               ^
# | <stdin>:102:2: note: 'next' match was here
# |  Early Machine Loop Invariant Code Motion
# |  ^
# | <stdin>:99:36: note: previous match ended here
# |  MachineDominator Tree Construction
# |                                    ^
# | <stdin>:100:1: note: non-matching line after previous match is here
# |  Machine Natural Loop Construction
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/O3-pipeline.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            94:  Assignment Tracking Analysis 
# |            95:  Lazy Branch Probability Analysis 
# |            96:  Lazy Block Frequency Analysis 
# |            97:  RISC-V DAG->DAG Pattern Instruction Selection 
# |            98:  Finalize ISel and expand pseudo-instructions 
# |            99:  MachineDominator Tree Construction 
# | next:109'0                                       {   search range start (exclusive)
# |           100:  Machine Natural Loop Construction 
# |           101:  Machine Block Frequency Analysis 
# |           102:  Early Machine Loop Invariant Code Motion 
# | next:109'1      !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   error: match on wrong line
# |           103:  MachineDominator Tree Construction 
# |           104:  RISC-V VL Optimizer 
# |           105:  RISC-V Vector Peephole Optimization 
# |           106:  RISC-V Fold Memory Offset 
# |           107:  Lazy Machine Block Frequency Analysis 
# |             .
# |             .
# |             .
# |           220:  RISC-V atomic pseudo instruction expansion pass 
# |           221:  Unpack machine instruction bundles 
# |           222:  Lazy Machine Block Frequency Analysis 
# |           223:  Machine Optimization Remark Emitter 
# |           224:  RISC-V Assembly Printer 
# |           225:  Free MachineFunction 
# | next:109'2                           } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/210028


More information about the llvm-commits mailing list