[llvm] [RISCV] Don't commute with shift if it would break sh{1,2,3}add pattern (PR #119527)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 03:33:21 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ml-opt-rel-x86-64` running on `ml-opt-rel-x86-64-b2` while building `llvm` at step 6 "test-build-unified-tree-check-all".

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

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

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_16.s' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
RUN: at line 1: /b/ml-opt-rel-x86-64-b1/build/bin/llvm-mc -triple=x86_64-unknown-linux -position-independent      -filetype=obj -o /b/ml-opt-rel-x86-64-b1/build/test/ExecutionEngine/JITLink/x86-64/Output/ELF_R_X86_64_16.s.tmp.o /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_16.s
+ /b/ml-opt-rel-x86-64-b1/build/bin/llvm-mc -triple=x86_64-unknown-linux -position-independent -filetype=obj -o /b/ml-opt-rel-x86-64-b1/build/test/ExecutionEngine/JITLink/x86-64/Output/ELF_R_X86_64_16.s.tmp.o /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_16.s
RUN: at line 3: /b/ml-opt-rel-x86-64-b1/build/bin/llvm-jitlink -noexec -abs X=0x1234 -check=/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_16.s /b/ml-opt-rel-x86-64-b1/build/test/ExecutionEngine/JITLink/x86-64/Output/ELF_R_X86_64_16.s.tmp.o
+ /b/ml-opt-rel-x86-64-b1/build/bin/llvm-jitlink -noexec -abs X=0x1234 -check=/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_16.s /b/ml-opt-rel-x86-64-b1/build/test/ExecutionEngine/JITLink/x86-64/Output/ELF_R_X86_64_16.s.tmp.o
llvm-jitlink: /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h:285: llvm::orc::SymbolStringPool::~SymbolStringPool(): Assertion `Pool.empty() && "Dangling references at pool destruction time"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /b/ml-opt-rel-x86-64-b1/build/bin/llvm-jitlink -noexec -abs X=0x1234 -check=/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_16.s /b/ml-opt-rel-x86-64-b1/build/test/ExecutionEngine/JITLink/x86-64/Output/ELF_R_X86_64_16.s.tmp.o
 #0 0x000056179828e4d8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/b/ml-opt-rel-x86-64-b1/build/bin/llvm-jitlink+0x11434d8)
 #1 0x000056179828b8bc SignalHandler(int) Signals.cpp:0:0
 #2 0x00007fc480b00140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x13140)
 #3 0x00007fc4805f7d51 raise (/lib/x86_64-linux-gnu/libc.so.6+0x38d51)
 #4 0x00007fc4805e1537 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22537)
 #5 0x00007fc4805e140f (/lib/x86_64-linux-gnu/libc.so.6+0x2240f)
 #6 0x00007fc4805f06d2 (/lib/x86_64-linux-gnu/libc.so.6+0x316d2)
 #7 0x000056179788ddff (/b/ml-opt-rel-x86-64-b1/build/bin/llvm-jitlink+0x742dff)
 #8 0x000056179813a63a llvm::orc::ExecutorProcessControl::~ExecutorProcessControl() (/b/ml-opt-rel-x86-64-b1/build/bin/llvm-jitlink+0xfef63a)
 #9 0x000056179813a863 llvm::orc::SelfExecutorProcessControl::~SelfExecutorProcessControl() crtstuff.c:0:0
#10 0x0000561798058f66 llvm::orc::ExecutionSession::~ExecutionSession() (/b/ml-opt-rel-x86-64-b1/build/bin/llvm-jitlink+0xf0df66)
#11 0x000056179783f34e main (/b/ml-opt-rel-x86-64-b1/build/bin/llvm-jitlink+0x6f434e)
#12 0x00007fc4805e2d7a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d7a)
#13 0x000056179787d47a _start (/b/ml-opt-rel-x86-64-b1/build/bin/llvm-jitlink+0x73247a)
/b/ml-opt-rel-x86-64-b1/build/test/ExecutionEngine/JITLink/x86-64/Output/ELF_R_X86_64_16.s.script: line 3: 4007321 Aborted                 /b/ml-opt-rel-x86-64-b1/build/bin/llvm-jitlink -noexec -abs X=0x1234 -check=/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/ELF_R_X86_64_16.s /b/ml-opt-rel-x86-64-b1/build/test/ExecutionEngine/JITLink/x86-64/Output/ELF_R_X86_64_16.s.tmp.o

--

********************


```

</details>

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


More information about the llvm-commits mailing list