[llvm] [TableGen] Avoid assignmentInAssert warning (PR #139715)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Tue May 13 05:12:01 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `llvm` at step 3 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/19304
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-build.sh --jobs=' (failure)
...
[138/377] Linking CXX executable bin/clang-change-namespace
[139/377] Linking CXX executable bin/clang-move
[140/377] Linking CXX executable bin/llvm-exegesis
[141/377] Linking CXX executable bin/clang-query
[142/377] Linking CXX executable bin/clang-include-cleaner
[143/377] Linking CXX executable bin/lli
[144/377] Building AMDGPUGenMCPseudoLowering.inc...
[145/377] Linking CXX executable bin/pp-trace
[146/377] Linking CXX executable bin/clang-import-test
[147/377] Building AMDGPUGenPreLegalizeGICombiner.inc...
FAILED: lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc
cd /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU && /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen -gen-global-isel-combiner -combiners="AMDGPUPreLegalizerCombiner" -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc
llvm-tblgen: /home/botworker/bbot/clang-hip-vega20/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/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen -gen-global-isel-combiner -combiners=AMDGPUPreLegalizerCombiner -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc
#0 0x00005ca01b27fb30 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x378b30)
#1 0x00005ca01b27d10f llvm::sys::RunSignalHandlers() (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x37610f)
#2 0x00005ca01b27d25a SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x000076c7de32e520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x000076c7de3829fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#5 0x000076c7de32e476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#6 0x000076c7de3147f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#7 0x000076c7de31471b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
#8 0x000076c7de325e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#9 0x00005ca01b14221b (anonymous namespace)::GICombinerEmitter::emitTestSimplePredicate(llvm::raw_ostream&) GlobalISelCombinerEmitter.cpp:0:0
#10 0x00005ca01af94de9 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/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x8dde9)
#11 0x00005ca01b15afb8 EmitGICombiner(llvm::RecordKeeper const&, llvm::raw_ostream&) GlobalISelCombinerEmitter.cpp:0:0
#12 0x00005ca01b2bdc4f llvm::TableGen::Emitter::ApplyCallback(llvm::RecordKeeper const&, llvm::raw_ostream&) (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x3b6c4f)
#13 0x00005ca01b28b44d llvm::TableGenMain(char const*, std::function<bool (llvm::raw_ostream&, llvm::RecordKeeper const&)>) (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x38444d)
#14 0x00005ca01af5f598 tblgen_main(int, char**) (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x58598)
#15 0x000076c7de315d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#16 0x000076c7de315e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#17 0x00005ca01af25f25 _start (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x1ef25)
Aborted (core dumped)
[148/377] Linking CXX executable bin/tool-template
[149/377] Building AMDGPUGenPostLegalizeGICombiner.inc...
FAILED: lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc
cd /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU && /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen -gen-global-isel-combiner -combiners="AMDGPUPostLegalizerCombiner" -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc
llvm-tblgen: /home/botworker/bbot/clang-hip-vega20/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/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen -gen-global-isel-combiner -combiners=AMDGPUPostLegalizerCombiner -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc
#0 0x000056ec4ca86b30 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x378b30)
#1 0x000056ec4ca8410f llvm::sys::RunSignalHandlers() (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x37610f)
#2 0x000056ec4ca8425a SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x000075c624667520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x000075c6246bb9fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#5 0x000075c624667476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
Step 7 (Building LLVM) failure: Building LLVM (failure)
...
[138/377] Linking CXX executable bin/clang-change-namespace
[139/377] Linking CXX executable bin/clang-move
[140/377] Linking CXX executable bin/llvm-exegesis
[141/377] Linking CXX executable bin/clang-query
[142/377] Linking CXX executable bin/clang-include-cleaner
[143/377] Linking CXX executable bin/lli
[144/377] Building AMDGPUGenMCPseudoLowering.inc...
[145/377] Linking CXX executable bin/pp-trace
[146/377] Linking CXX executable bin/clang-import-test
[147/377] Building AMDGPUGenPreLegalizeGICombiner.inc...
FAILED: lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc
cd /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU && /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen -gen-global-isel-combiner -combiners="AMDGPUPreLegalizerCombiner" -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc
llvm-tblgen: /home/botworker/bbot/clang-hip-vega20/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/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen -gen-global-isel-combiner -combiners=AMDGPUPreLegalizerCombiner -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc
#0 0x00005ca01b27fb30 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x378b30)
#1 0x00005ca01b27d10f llvm::sys::RunSignalHandlers() (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x37610f)
#2 0x00005ca01b27d25a SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x000076c7de32e520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x000076c7de3829fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#5 0x000076c7de32e476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
#6 0x000076c7de3147f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
#7 0x000076c7de31471b (/lib/x86_64-linux-gnu/libc.so.6+0x2871b)
#8 0x000076c7de325e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#9 0x00005ca01b14221b (anonymous namespace)::GICombinerEmitter::emitTestSimplePredicate(llvm::raw_ostream&) GlobalISelCombinerEmitter.cpp:0:0
#10 0x00005ca01af94de9 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/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x8dde9)
#11 0x00005ca01b15afb8 EmitGICombiner(llvm::RecordKeeper const&, llvm::raw_ostream&) GlobalISelCombinerEmitter.cpp:0:0
#12 0x00005ca01b2bdc4f llvm::TableGen::Emitter::ApplyCallback(llvm::RecordKeeper const&, llvm::raw_ostream&) (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x3b6c4f)
#13 0x00005ca01b28b44d llvm::TableGenMain(char const*, std::function<bool (llvm::raw_ostream&, llvm::RecordKeeper const&)>) (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x38444d)
#14 0x00005ca01af5f598 tblgen_main(int, char**) (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x58598)
#15 0x000076c7de315d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#16 0x000076c7de315e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#17 0x00005ca01af25f25 _start (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x1ef25)
Aborted (core dumped)
[148/377] Linking CXX executable bin/tool-template
[149/377] Building AMDGPUGenPostLegalizeGICombiner.inc...
FAILED: lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc
cd /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU && /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen -gen-global-isel-combiner -combiners="AMDGPUPostLegalizerCombiner" -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc
llvm-tblgen: /home/botworker/bbot/clang-hip-vega20/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/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen -gen-global-isel-combiner -combiners=AMDGPUPostLegalizerCombiner -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -I /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o /home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc
#0 0x000056ec4ca86b30 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x378b30)
#1 0x000056ec4ca8410f llvm::sys::RunSignalHandlers() (/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/bin/llvm-tblgen+0x37610f)
#2 0x000056ec4ca8425a SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x000075c624667520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x000075c6246bb9fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
#5 0x000075c624667476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
```
</details>
https://github.com/llvm/llvm-project/pull/139715
More information about the llvm-commits
mailing list