[llvm] [TableGen] Avoid assignmentInAssert warning (PR #139715)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 05:16:50 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while building `llvm` at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/95/builds/13171

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
36.584 [991/182/140] Building SparcGenInstrInfo.inc...
36.638 [976/181/141] Building SparcGenCallingConv.inc...
36.668 [975/180/142] Building SparcGenMCCodeEmitter.inc...
36.702 [973/179/143] Building PPCGenExegesis.inc...
36.703 [973/178/144] Building SPIRVGenRegisterBank.inc...
36.720 [973/177/145] Building SystemZGenRegisterInfo.inc...
36.725 [973/176/146] Building MipsGenRegisterBank.inc...
36.729 [973/175/147] Building SparcGenAsmMatcher.inc...
36.730 [971/174/148] Building XCoreGenInstrInfo.inc...
36.764 [955/173/149] Building SPIRVGenPreLegalizeGICombiner.inc...
FAILED: lib/Target/SPIRV/SPIRVGenPreLegalizeGICombiner.inc /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/lib/Target/SPIRV/SPIRVGenPreLegalizeGICombiner.inc 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/lib/Target/SPIRV && /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llvm-tblgen -gen-global-isel-combiner -combiners="SPIRVPreLegalizerCombiner" -I /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/lib/Target/SPIRV -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/include -I /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/lib/Target /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/lib/Target/SPIRV/SPIRV.td --write-if-changed -o SPIRVGenPreLegalizeGICombiner.inc -d SPIRVGenPreLegalizeGICombiner.inc.d && /home/buildbots/llvm-external-buildbots/cmake-3.31.2/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/lib/Target/SPIRV /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/lib/Target/SPIRV /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/lib/Target/SPIRV/SPIRVGenPreLegalizeGICombiner.inc.d /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/CMakeFiles/d/e26f0d7ca8baf26379e76bd4223446a1a778cbce9041b9c3d6978e6f7c3e55a0.d
llvm-tblgen: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/utils/TableGen/GlobalISelCombinerEmitter.cpp:2615: virtual void {anonymous}::GICombinerEmitter::emitTestSimplePredicate(llvm::raw_ostream&): Assertion `ExpectedID == ID && "combine rules are not ordered!"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llvm-tblgen -gen-global-isel-combiner -combiners=SPIRVPreLegalizerCombiner -I /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/lib/Target/SPIRV -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/include -I /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/lib/Target /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/lib/Target/SPIRV/SPIRV.td --write-if-changed -o SPIRVGenPreLegalizeGICombiner.inc -d SPIRVGenPreLegalizeGICombiner.inc.d
 #0 0x00000000103b0920 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llvm-tblgen+0x103b0920)
 #1 0x00000000103adea4 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #2 0x00007fff881904d8 (linux-vdso64.so.1+0x4d8)
 #3 0x00007fff87a2a4c8 raise (/lib64/libc.so.6+0x4a4c8)
 #4 0x00007fff87a04a54 abort (/lib64/libc.so.6+0x24a54)
 #5 0x00007fff87a1dcb0 __assert_fail_base (/lib64/libc.so.6+0x3dcb0)
 #6 0x00007fff87a1dd54 __assert_fail (/lib64/libc.so.6+0x3dd54)
 #7 0x0000000010246008 (anonymous namespace)::GICombinerEmitter::emitTestSimplePredicate(llvm::raw_ostream&) GlobalISelCombinerEmitter.cpp:0:0
 #8 0x0000000010081dc4 llvm::GlobalISelMatchTableExecutorEmitter::emitExecutorImpl(llvm::raw_ostream&, llvm::gi::MatchTable const&, llvm::ArrayRef<llvm::gi::LLTCodeGen>, llvm::ArrayRef<llvm::gi::RuleMatcher>, llvm::ArrayRef<llvm::Record const*>, llvm::ArrayRef<llvm::StringRef>, llvm::StringRef) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llvm-tblgen+0x10081dc4)
 #9 0x000000001025cb14 EmitGICombiner(llvm::RecordKeeper const&, llvm::raw_ostream&) GlobalISelCombinerEmitter.cpp:0:0
#10 0x000000001000ad2c void llvm::function_ref<void (llvm::RecordKeeper const&, llvm::raw_ostream&)>::callback_fn<void (llvm::RecordKeeper const&, llvm::raw_ostream&)>(long, llvm::RecordKeeper const&, llvm::raw_ostream&) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llvm-tblgen+0x1000ad2c)
#11 0x00000000103f4fd8 llvm::TableGen::Emitter::ApplyCallback(llvm::RecordKeeper const&, llvm::raw_ostream&) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llvm-tblgen+0x103f4fd8)
#12 0x00000000103bbda8 llvm::TableGenMain(char const*, std::function<bool (llvm::raw_ostream&, llvm::RecordKeeper const&)>) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llvm-tblgen+0x103bbda8)
#13 0x000000001004576c tblgen_main(int, char**) (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llvm-tblgen+0x1004576c)
#14 0x0000000010008b38 main (/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llvm-tblgen+0x10008b38)
#15 0x00007fff87a0a9ec generic_start_main.isra.0 (/lib64/libc.so.6+0x2a9ec)
#16 0x00007fff87a0ab84 __libc_start_main (/lib64/libc.so.6+0x2ab84)
/bin/sh: line 1: 3229904 Aborted                 (core dumped) /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/bin/llvm-tblgen -gen-global-isel-combiner -combiners="SPIRVPreLegalizerCombiner" -I /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/lib/Target/SPIRV -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/include -I /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/lib/Target /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-test-suite/clang-ppc64le-test-suite/llvm-project/llvm/lib/Target/SPIRV/SPIRV.td --write-if-changed -o SPIRVGenPreLegalizeGICombiner.inc -d SPIRVGenPreLegalizeGICombiner.inc.d
36.832 [955/172/150] Building SystemZGenHLASMAsmWriter.inc...
36.852 [954/171/151] Building SPIRVGenRegisterInfo.inc...
36.857 [953/170/152] Building BPFGenDAGISel.inc...
36.907 [952/169/153] Building SPIRVGenAsmWriter.inc...
36.921 [952/168/154] Building AVRGenDAGISel.inc...
36.926 [950/167/155] Building BPFGenGlobalISel.inc...
36.936 [948/166/156] Building SPIRVGenTables.inc...
36.983 [946/165/157] Building ARMGenCallingConv.inc...
36.991 [946/164/158] Building SparcGenDAGISel.inc...
37.001 [944/163/159] Building MipsGenAsmWriter.inc...
37.051 [944/162/160] Building PPCGenDisassemblerTables.inc...
37.063 [944/161/161] Building PPCGenAsmMatcher.inc...
37.066 [944/160/162] Building SPIRVGenInstrInfo.inc...
37.093 [910/159/163] Building XCoreGenDAGISel.inc...
37.103 [908/158/164] Building ARMGenSystemRegister.inc...

```

</details>

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


More information about the llvm-commits mailing list