[llvm] [RISCV] Use a DAG combine to prune pointless vrgather.vi (PR #135392)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 11 20:31:20 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-qemu` running on `sanitizer-buildbot4` while building `llvm` at step 2 "annotate".

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

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

```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[75/77] Generating ScudoUnitTestsObjects.combined_test.cpp.mips64el.o
clang++: warning: -Wl,-z,execstack: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: -Wl,-z,execstack: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: -Wl,-z,execstack: 'linker' input unused [-Wunused-command-line-argument]
[76/77] Generating ScudoUnitTest-mips64el-Test
[76/77] Running Scudo Standalone tests
llvm-lit: /home/b/sanitizer-x86_64-linux-qemu/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 159 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
TIMEOUT: ScudoStandalone-Unit :: ./ScudoUnitTest-mips64el-Test/69/141 (159 of 159)
******************** TEST 'ScudoStandalone-Unit :: ./ScudoUnitTest-mips64el-Test/69/141' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/b/sanitizer-x86_64-linux-qemu/build/llvm_build2_debug_mips64el_qemu/lib/scudo/standalone/tests/./ScudoUnitTest-mips64el-Test-ScudoStandalone-Unit-1202096-69-141.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=141 GTEST_SHARD_INDEX=69 /home/b/sanitizer-x86_64-linux-qemu/build/qemu_build/qemu-mips64el -L /usr/mips64el-linux-gnuabi64 /home/b/sanitizer-x86_64-linux-qemu/build/llvm_build2_debug_mips64el_qemu/lib/scudo/standalone/tests/./ScudoUnitTest-mips64el-Test
--

Note: This is test shard 70 of 141.
[==========] Running 2 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 1 test from ScudoCombinedDeathTestBasicCombined14_DefaultConfig
[ RUN      ] ScudoCombinedDeathTestBasicCombined14_DefaultConfig.BasicCombined14
Stats: SizeClassAllocator64: 2M mapped (0M rss) in 34 allocations; remains 34; ReleaseToOsIntervalMs = 5000
  00 (   128): mapped:    256K popped:      24 pushed:       0 inuse:     24 total:     64 releases attempted:      0 last released:      0K latest pushed bytes:      5K region: 0x556c56872000 (0x556c56869000)
  32 ( 16384): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases attempted:      0 last released:      0K latest pushed bytes:    112K region: 0x556d56871000 (0x556d56869000)
  33 ( 20480): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases attempted:      0 last released:      0K latest pushed bytes:    140K region: 0x557856872000 (0x557856869000)
  34 ( 24576): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases attempted:      0 last released:      0K latest pushed bytes:    168K region: 0x557e56873000 (0x557e56869000)
  35 ( 28672): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases attempted:      0 last released:      0K latest pushed bytes:    196K region: 0x557556878000 (0x557556869000)
  36 ( 32768): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases attempted:      0 last released:      0K latest pushed bytes:    224K region: 0x556156871000 (0x556156869000)
  37 ( 40960): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      6 releases attempted:      0 last released:      0K latest pushed bytes:    200K region: 0x558056878000 (0x558056869000)
  38 ( 49152): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      5 releases attempted:      0 last released:      0K latest pushed bytes:    192K region: 0x556456877000 (0x556456869000)
  39 ( 57344): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      4 releases attempted:      0 last released:      0K latest pushed bytes:    168K region: 0x55745686e000 (0x557456869000)
  41 ( 81920): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      3 releases attempted:      0 last released:      0K latest pushed bytes:    160K region: 0x55635686e000 (0x556356869000)
  42 ( 98304): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      2 releases attempted:      0 last released:      0K latest pushed bytes:     96K region: 0x556e56876000 (0x556e56869000)
Stats: MapAllocator: allocated 0 times (0K), freed 0 times (0K), remains 0 (0K) max 0M, Fragmented 0K
Stats: MapAllocatorCache: EntriesCount: 0, MaxEntriesCount: 32, MaxEntrySize: 524288, ReleaseToOsSkips: 0, ReleaseToOsIntervalMs = 5000
Stats: CacheRetrievalStats: SuccessRate: 0/0 (100.00%)
Cache Entry Info (Most Recent -> Least Recent):
Stats: Quarantine: batches: 0; bytes: 0 (user: 0); chunks: 0 (capacity: 0); 0% chunks used; 0% memory overhead
Quarantine limits: global: 0K; thread local: 0K
Exclusive TSD don't support iterating each TSD
Fragmentation Stats: SizeClassAllocator64: page size = 4096 bytes
  01 (    32): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  02 (    64): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  03 (    96): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  04 (   128): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  05 (   160): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  06 (   192): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  07 (   224): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  08 (   256): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
Step 23 (scudo debug_mips64el_qemu) failure: scudo debug_mips64el_qemu (failure)
...
[75/77] Generating ScudoUnitTestsObjects.combined_test.cpp.mips64el.o
clang++: warning: -Wl,-z,execstack: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: -Wl,-z,execstack: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: -Wl,-z,execstack: 'linker' input unused [-Wunused-command-line-argument]
[76/77] Generating ScudoUnitTest-mips64el-Test
[76/77] Running Scudo Standalone tests
llvm-lit: /home/b/sanitizer-x86_64-linux-qemu/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 159 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
TIMEOUT: ScudoStandalone-Unit :: ./ScudoUnitTest-mips64el-Test/69/141 (159 of 159)
******************** TEST 'ScudoStandalone-Unit :: ./ScudoUnitTest-mips64el-Test/69/141' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/b/sanitizer-x86_64-linux-qemu/build/llvm_build2_debug_mips64el_qemu/lib/scudo/standalone/tests/./ScudoUnitTest-mips64el-Test-ScudoStandalone-Unit-1202096-69-141.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=141 GTEST_SHARD_INDEX=69 /home/b/sanitizer-x86_64-linux-qemu/build/qemu_build/qemu-mips64el -L /usr/mips64el-linux-gnuabi64 /home/b/sanitizer-x86_64-linux-qemu/build/llvm_build2_debug_mips64el_qemu/lib/scudo/standalone/tests/./ScudoUnitTest-mips64el-Test
--

Note: This is test shard 70 of 141.
[==========] Running 2 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 1 test from ScudoCombinedDeathTestBasicCombined14_DefaultConfig
[ RUN      ] ScudoCombinedDeathTestBasicCombined14_DefaultConfig.BasicCombined14
Stats: SizeClassAllocator64: 2M mapped (0M rss) in 34 allocations; remains 34; ReleaseToOsIntervalMs = 5000
  00 (   128): mapped:    256K popped:      24 pushed:       0 inuse:     24 total:     64 releases attempted:      0 last released:      0K latest pushed bytes:      5K region: 0x556c56872000 (0x556c56869000)
  32 ( 16384): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases attempted:      0 last released:      0K latest pushed bytes:    112K region: 0x556d56871000 (0x556d56869000)
  33 ( 20480): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases attempted:      0 last released:      0K latest pushed bytes:    140K region: 0x557856872000 (0x557856869000)
  34 ( 24576): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases attempted:      0 last released:      0K latest pushed bytes:    168K region: 0x557e56873000 (0x557e56869000)
  35 ( 28672): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases attempted:      0 last released:      0K latest pushed bytes:    196K region: 0x557556878000 (0x557556869000)
  36 ( 32768): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      8 releases attempted:      0 last released:      0K latest pushed bytes:    224K region: 0x556156871000 (0x556156869000)
  37 ( 40960): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      6 releases attempted:      0 last released:      0K latest pushed bytes:    200K region: 0x558056878000 (0x558056869000)
  38 ( 49152): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      5 releases attempted:      0 last released:      0K latest pushed bytes:    192K region: 0x556456877000 (0x556456869000)
  39 ( 57344): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      4 releases attempted:      0 last released:      0K latest pushed bytes:    168K region: 0x55745686e000 (0x557456869000)
  41 ( 81920): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      3 releases attempted:      0 last released:      0K latest pushed bytes:    160K region: 0x55635686e000 (0x556356869000)
  42 ( 98304): mapped:    256K popped:       1 pushed:       0 inuse:      1 total:      2 releases attempted:      0 last released:      0K latest pushed bytes:     96K region: 0x556e56876000 (0x556e56869000)
Stats: MapAllocator: allocated 0 times (0K), freed 0 times (0K), remains 0 (0K) max 0M, Fragmented 0K
Stats: MapAllocatorCache: EntriesCount: 0, MaxEntriesCount: 32, MaxEntrySize: 524288, ReleaseToOsSkips: 0, ReleaseToOsIntervalMs = 5000
Stats: CacheRetrievalStats: SuccessRate: 0/0 (100.00%)
Cache Entry Info (Most Recent -> Least Recent):
Stats: Quarantine: batches: 0; bytes: 0 (user: 0); chunks: 0 (capacity: 0); 0% chunks used; 0% memory overhead
Quarantine limits: global: 0K; thread local: 0K
Exclusive TSD don't support iterating each TSD
Fragmentation Stats: SizeClassAllocator64: page size = 4096 bytes
  01 (    32): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  02 (    64): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  03 (    96): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  04 (   128): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  05 (   160): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  06 (   192): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  07 (   224): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%
  08 (   256): inuse/total blocks:      0/     0 inuse/total pages:      0/     0 inuse bytes:      0K util: 100.00%

```

</details>

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


More information about the llvm-commits mailing list