[llvm] [AMDGPU] Update LiveVariables in SILowerControlFlow::combineMasks (PR #217844)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 10:46:05 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 154425 tests passed
* 3431 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/lower-control-flow-live-variables-update.mir</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgpu7.00-amd-amdhsa -start-before=livevars -stop-after=twoaddressinstruction -verify-machineinstrs -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lower-control-flow-live-variables-update.mir | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lower-control-flow-live-variables-update.mir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgpu7.00-amd-amdhsa -start-before=livevars -stop-after=twoaddressinstruction -verify-machineinstrs -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lower-control-flow-live-variables-update.mir
# .---command stderr------------
# |
# | # After SI Lower control flow pseudo instructions
# | ********** INTERVALS **********
# | SGPR4_LO16 [0B,16r:0) 0 at 0B-phi
# | %0 [16r,96r:0) 0 at 16r weight:0.000000e+00
# | %1 [32r,56r:0) 0 at 32r weight:0.000000e+00
# | %2 [96r,112r:0) 0 at 96r weight:0.000000e+00
# | %3 [112r,128r:0) 0 at 112r weight:0.000000e+00
# | RegMasks:
# | ********** MACHINEINSTRS **********
# | # Machine code for function live_variables_update_combine_masks: NoPHIs, TracksLiveness
# |
# | 0B bb.0:
# | successors: %bb.1(0x80000000); %bb.1(100.00%)
# | liveins: $sgpr4
# | 16B %0:sreg_32 = COPY $sgpr4
# | 32B %1:sreg_64_xexec = IMPLICIT_DEF
# |
# | 48B bb.1:
# | ; predecessors: %bb.0
# |
# | 56B $exec = S_OR_B64 $exec, %1:sreg_64_xexec, implicit-def dead $scc
# | 80B S_NOP 0
# | 112B %3:sreg_32 = S_AND_B32 64, %0:sreg_32, implicit-def dead $scc
# | 128B $sgpr0 = COPY %3:sreg_32
# | 144B S_ENDPGM 0, implicit killed $sgpr0
# |
# | # End machine code for function live_variables_update_combine_masks.
# |
# | *** Bad machine code: No live segment at use ***
# | - function: live_variables_update_combine_masks
# | - basic block: %bb.1 (0x2c0d1a08) [48B;160B)
# | - instruction: 112B %3:sreg_32 = S_AND_B32 64, %0:sreg_32, implicit-def dead $scc
# | - operand 2: %0:sreg_32
# | - liverange: [16r,96r:0) 0 at 16r
# | - v. register: %0
# | - at: 112B
# |
# | *** Bad machine code: Bad end of live segment, no basic block ***
# | - function: live_variables_update_combine_masks
# | - liverange: [16r,96r:0) 0 at 16r
# | - v. register: %0
# | - segment: [16r,96r:0)
# | LLVM ERROR: Found 2 machine code errors.
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0. Program arguments: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgpu7.00-amd-amdhsa -start-before=livevars -stop-after=twoaddressinstruction -verify-machineinstrs -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lower-control-flow-live-variables-update.mir
# | 1. Running pass 'Function Pass Manager' on module '/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lower-control-flow-live-variables-update.mir'.
# | 2. Running pass 'Verify generated machine code' on function '@live_variables_update_combine_masks'
# | #0 0x000000000558cb6b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:931:13
# | #1 0x00000000055898e1 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x000000000558d5ab SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:474:38
# | #3 0x00007a0b2294bcb0 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x45cb0)
# | #4 0x00007a0b229ac1ac pthread_kill (/usr/lib/x86_64-linux-gnu/libc.so.6+0xa61ac)
# | #5 0x00007a0b2294bb7e raise (/usr/lib/x86_64-linux-gnu/libc.so.6+0x45b7e)
# | #6 0x00007a0b2292e8ec abort (/usr/lib/x86_64-linux-gnu/libc.so.6+0x288ec)
# | #7 0x00000000054d02d5 llvm::report_fatal_error(llvm::Twine const&, bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/ErrorHandling.cpp:137:5
# | #8 0x0000000005f989d2 usedWords /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:102:3
# | #9 0x0000000005f989d2 allocBytes /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:141:50
# | #10 0x0000000005f989d2 allocBytes<llvm::detail::DenseSetPair<llvm::Register> > /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:144:10
# | #11 0x0000000005f989d2 deallocateBuckets /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:243:32
# | #12 0x0000000005f989d2 ~DenseMapBase /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseMap.h:1042:13
# | #13 0x0000000005f989d2 ~DenseSetImpl /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/DenseSet.h:53:50
# | #14 0x0000000005f989d2 (anonymous namespace)::MachineVerifier::~MachineVerifier() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineVerifier.cpp:116:8
# | #15 0x0000000005f99d3a (anonymous namespace)::MachineVerifierLegacyPass::runOnMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineVerifier.cpp:0:5
# | #16 0x0000000005ef9a16 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:101:7
# | #17 0x0000000005bc998b llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #18 0x0000000005bd1592 llvm::FPPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1471:13
# | #19 0x0000000005bca7f4 runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1578:27
# | #20 0x0000000005bca7f4 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:533:44
# | #21 0x0000000005594b34 compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/lib/llcdriver.cpp:886:17
# | #22 0x0000000005591aa3 llcMain /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/lib/llcdriver.cpp:467:13
# | #23 0x00000000054cfd2f main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:15:10
# | #24 0x00007a0b22930601 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a601)
# | #25 0x00007a0b22930718 __libc_start_main (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a718)
# | #26 0x00000000054cfc25 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x54cfc25)
# `-----------------------------
# error: command failed with exit status: -6
# 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/AMDGPU/lower-control-flow-live-variables-update.mir
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lower-control-flow-live-variables-update.mir
# `-----------------------------
# error: command failed with exit status: 2
--
```
</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/217844
More information about the llvm-commits
mailing list