[llvm] [InstCombine] fold nested bitreverse and bswap (PR #202236)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 8 04:29:56 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 175202 tests passed
* 3439 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### BOLT
<details>
<summary>BOLT.AArch64/compare-and-branch-inversion.S</summary>

```
Exit Code: -6

Command Output (stdout):
--
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang  --target=x86_64-unknown-linux-gnu -fPIE -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all -Wl,--build-id=none -pie -mllvm -x86-asm-syntax=att --target=aarch64-unknown-linux-gnu -nostartfiles -nostdlib -ffreestanding -Wl,-z,defs -march=armv9-a+cmpbr -Wl,-q /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/AArch64/compare-and-branch-inversion.S -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=x86_64-unknown-linux-gnu -fPIE -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all -Wl,--build-id=none -pie -mllvm -x86-asm-syntax=att --target=aarch64-unknown-linux-gnu -nostartfiles -nostdlib -ffreestanding -Wl,-z,defs -march=armv9-a+cmpbr -Wl,-q /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/AArch64/compare-and-branch-inversion.S -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp
# .---command stderr------------
# | ld.lld: warning: cannot find entry symbol _start; not setting start address
# `-----------------------------
# RUN: at line 10
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/link_fdata.py --no-lbr /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/AArch64/compare-and-branch-inversion.S /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.fdata
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/link_fdata.py --no-lbr /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/AArch64/compare-and-branch-inversion.S /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.fdata
# note: command had no output on stdout or stderr
# RUN: at line 11
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-strip --strip-unneeded /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-strip --strip-unneeded /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp
# note: command had no output on stdout or stderr
# RUN: at line 13
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a -v=1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.bolt --data /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.fdata --reorder-blocks=ext-tsp --compact-code-model    | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/AArch64/compare-and-branch-inversion.S --check-prefix=BOLT-INFO-NO-LIVENESS
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a -v=1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.bolt --data /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.fdata --reorder-blocks=ext-tsp --compact-code-model
# .---command stderr------------
# | BOLT-INFO: no .got section found
# `-----------------------------
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/AArch64/compare-and-branch-inversion.S --check-prefix=BOLT-INFO-NO-LIVENESS
# note: command had no output on stdout or stderr
# RUN: at line 15
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.bolt | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/AArch64/compare-and-branch-inversion.S --check-prefix=COMMON --check-prefix=NO-LIVENESS
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump -d /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.bolt
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/AArch64/compare-and-branch-inversion.S --check-prefix=COMMON --check-prefix=NO-LIVENESS
# note: command had no output on stdout or stderr
# RUN: at line 17
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a -v=1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.bolt --data /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.fdata --reorder-blocks=ext-tsp --compact-code-model    --liveness-analysis | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/bolt/test/AArch64/compare-and-branch-inversion.S --check-prefix=BOLT-INFO-LIVENESS
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-bolt --runtime-instrumentation-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a -v=1 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.bolt --data /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/bolt/test/AArch64/Output/compare-and-branch-inversion.S.tmp.fdata --reorder-blocks=ext-tsp --compact-code-model --liveness-analysis
# .---command stderr------------
# | BOLT-INFO: no .got section found
# | double free or corruption (out)
# |  #0 0x000000000301f298 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:881:13
# |  #1 0x000000000301c215 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# |  #2 0x00000000030200a1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
# |  #3 0x0000797c181cb330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x0000797c18224b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# |  #5 0x0000797c181cb27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# |  #6 0x0000797c181ae8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# |  #7 0x0000797c181af7b6 (/lib/x86_64-linux-gnu/libc.so.6+0x297b6)
# |  #8 0x0000797c1822eff5 (/lib/x86_64-linux-gnu/libc.so.6+0xa8ff5)
# |  #9 0x0000797c18231120 (/lib/x86_64-linux-gnu/libc.so.6+0xab120)
# | #10 0x0000797c1823143a (/lib/x86_64-linux-gnu/libc.so.6+0xab43a)
# | #11 0x0000797c18234021 (/lib/x86_64-linux-gnu/libc.so.6+0xae021)
# | #12 0x0000797c18222895 (/lib/x86_64-linux-gnu/libc.so.6+0x9c895)
# | #13 0x0000797c182afc6c (/lib/x86_64-linux-gnu/libc.so.6+0x129c6c)
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# `-----------------------------
# 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/bolt/test/AArch64/compare-and-branch-inversion.S --check-prefix=BOLT-INFO-LIVENESS
# note: command had no output on stdout or stderr

--

```
</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/202236


More information about the llvm-commits mailing list