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

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


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x86_64-linux-abi-test` running on `sie-linux-worker2` while building `llvm` at step 6 "build-unified-tree".

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

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

```
Step 6 (build-unified-tree) failure: build (failure)
...
12.936 [4239/9/2939] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/FDRRecordPrinterTest.cpp.o
12.939 [4239/8/2940] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/FDRTraceWriterTest.cpp.o
12.942 [4239/7/2941] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/GraphTest.cpp.o
12.947 [4239/6/2942] Building CXX object unittests/XRay/CMakeFiles/XRayTests.dir/ProfileTest.cpp.o
12.950 [4239/5/2943] Building CXX object unittests/tools/llvm-profdata/CMakeFiles/LLVMProfdataTests.dir/OutputSizeLimitTest.cpp.o
14.160 [4239/4/2944] Building CXX object utils/TableGen/CMakeFiles/llvm-tblgen.dir/GlobalISelCombinerEmitter.cpp.o
14.277 [4238/4/2945] Linking CXX executable bin/llvm-tblgen
15.200 [4231/10/2946] Building SPIRVGenInstrInfo.inc...
15.267 [4230/10/2947] Building SPIRVGenAsmWriter.inc...
15.278 [4229/10/2948] Building SPIRVGenPreLegalizeGICombiner.inc...
FAILED: lib/Target/SPIRV/SPIRVGenPreLegalizeGICombiner.inc /home/buildbot/buildbot-root/abi-test/build/lib/Target/SPIRV/SPIRVGenPreLegalizeGICombiner.inc 
cd /home/buildbot/buildbot-root/abi-test/build/lib/Target/SPIRV && /home/buildbot/buildbot-root/abi-test/build/bin/llvm-tblgen -gen-global-isel-combiner -combiners="SPIRVPreLegalizerCombiner" -I /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target/SPIRV -I/home/buildbot/buildbot-root/abi-test/build/include -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/include -I /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target/SPIRV/SPIRV.td --write-if-changed -o SPIRVGenPreLegalizeGICombiner.inc -d SPIRVGenPreLegalizeGICombiner.inc.d && /usr/bin/cmake/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /home/buildbot/buildbot-root/abi-test/llvm/llvm /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target/SPIRV /home/buildbot/buildbot-root/abi-test/build /home/buildbot/buildbot-root/abi-test/build/lib/Target/SPIRV /home/buildbot/buildbot-root/abi-test/build/lib/Target/SPIRV/SPIRVGenPreLegalizeGICombiner.inc.d /home/buildbot/buildbot-root/abi-test/build/CMakeFiles/d/a0a88907a354dc57d19de4c4ad9cc633631eaa59a78c3a1deeab2338693841cc.d
llvm-tblgen: /home/buildbot/buildbot-root/abi-test/llvm/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/buildbot/buildbot-root/abi-test/build/bin/llvm-tblgen -gen-global-isel-combiner -combiners=SPIRVPreLegalizerCombiner -I /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target/SPIRV -I/home/buildbot/buildbot-root/abi-test/build/include -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/include -I /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target/SPIRV/SPIRV.td --write-if-changed -o SPIRVGenPreLegalizeGICombiner.inc -d SPIRVGenPreLegalizeGICombiner.inc.d
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llvm-tblgen 0x00006420cbcfcb40
1  llvm-tblgen 0x00006420cbcfa11f
2  llvm-tblgen 0x00006420cbcfa26a
3  libc.so.6   0x00007bacb9b3a520
4  libc.so.6   0x00007bacb9b8e9fc pthread_kill + 300
5  libc.so.6   0x00007bacb9b3a476 raise + 22
6  libc.so.6   0x00007bacb9b207f3 abort + 211
7  libc.so.6   0x00007bacb9b2071b
8  libc.so.6   0x00007bacb9b31e96
9  llvm-tblgen 0x00006420cbbbf0bb
10 llvm-tblgen 0x00006420cba11aa9
11 llvm-tblgen 0x00006420cbbd7e58
12 llvm-tblgen 0x00006420cbd3acbf
13 llvm-tblgen 0x00006420cbd0847d
14 llvm-tblgen 0x00006420cb9dc208
15 libc.so.6   0x00007bacb9b21d90
16 libc.so.6   0x00007bacb9b21e40 __libc_start_main + 128
17 llvm-tblgen 0x00006420cb9a2b35
Aborted (core dumped)
15.319 [4229/9/2949] Building SPIRVGenGlobalISel.inc...
15.343 [4229/8/2950] Building SPIRVGenMCCodeEmitter.inc...
15.858 [4229/7/2951] Building SPIRVGenRegisterBank.inc...
16.030 [4229/6/2952] Building AArch64GenSystemOperands.inc...
16.074 [4229/5/2953] Building SPIRVGenTables.inc...
16.209 [4229/4/2954] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
20.775 [4229/3/2955] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
20.995 [4229/2/2956] Building AArch64GenSubtargetInfo.inc...
22.518 [4229/1/2957] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the llvm-commits mailing list