[llvm] [CodeGen] Use OwningArrayRef in NodeMetadata (NFC) (PR #137539)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 27 15:55:55 PDT 2025


llvm-ci wrote:

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

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

<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)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/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: 90527 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90
FAIL: LLVM :: CodeGen/Generic/PBQP.ll (50923 of 90527)
******************** TEST 'LLVM :: CodeGen/Generic/PBQP.ll' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -regalloc=pbqp < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/PBQP.ll # RUN: at line 1
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -regalloc=pbqp
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -regalloc=pbqp
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'PBQP Register Allocator' on function '@foo'
 #0 0x000055555a1ab5c2 ___interceptor_backtrace /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_common_interceptors.inc:4497:13
 #1 0x000055555e492328 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:13
 #2 0x000055555e48fbc8 llvm::sys::RunSignalHandlers() /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Support/Signals.cpp:0:5
 #3 0x000055555e492d15 SignalHandler(int, siginfo_t*, void*) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:418:13
 #4 0x000055555a1dea1e IsInInterceptorScope /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:77:10
 #5 0x000055555a1dea1e SignalAction(int, void*, void*) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:1137:3
 #6 0x00007ffff7a45250 (/lib/x86_64-linux-gnu/libc.so.6+0x45250)
 #7 0x00007ffff7aa3f1c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0xa3f1c)
 #8 0x00007ffff7a4519e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4519e)
 #9 0x00007ffff7a28902 abort (/lib/x86_64-linux-gnu/libc.so.6+0x28902)
#10 0x000055555a169dbc (/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc+0x4c15dbc)
#11 0x000055555a167bee __sanitizer::Die() /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp:52:5
#12 0x000055555a17ef73 (/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc+0x4c2af73)
#13 0x000055555a77cb4e bool llvm::is_contained<llvm::SmallVector<unsigned int, 32u> const&, unsigned int>(llvm::SmallVector<unsigned int, 32u> const&, unsigned int const&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1908:0
#14 0x000055555a77caf5 unsigned int* std::__1::find[abi:nn210000]<unsigned int*, int>(unsigned int*, unsigned int*, int const&) /home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_msan/include/c++/v1/__algorithm/find.h:176:3
#15 0x000055555a77ca95 data /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:165:36
#16 0x000055555a77ca95 data /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:357:58
#17 0x000055555a77ca95 end /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:360:35
#18 0x000055555a77ca95 end<llvm::OwningArrayRef<unsigned int> > /home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_msan/include/c++/v1/__iterator/access.h:51:14
#19 0x000055555a77ca95 end_impl<const llvm::OwningArrayRef<unsigned int> &> /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ADL.h:37:10
#20 0x000055555a77ca95 adl_end<const llvm::OwningArrayRef<unsigned int> &> /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ADL.h:88:10
#21 0x000055555a77ca95 bool llvm::is_contained<llvm::OwningArrayRef<unsigned int> const&, int>(llvm::OwningArrayRef<unsigned int> const&, int const&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1915:12
#22 0x000055555a77ba3d llvm::PBQP::RegAlloc::NodeMetadata::isConservativelyAllocatable() const /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:242:5
#23 0x000055555d22361e llvm::PBQP::RegAlloc::RegAllocSolverImpl::setup() /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:412:9
#24 0x000055555d2231dc llvm::PBQP::RegAlloc::RegAllocSolverImpl::solve() /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:0:5
#25 0x000055555d214e04 llvm::PBQP::RegAlloc::solve(llvm::PBQP::RegAlloc::PBQPRAGraph&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:519:1
Step 14 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/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: 90527 tests, 88 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90
FAIL: LLVM :: CodeGen/Generic/PBQP.ll (50923 of 90527)
******************** TEST 'LLVM :: CodeGen/Generic/PBQP.ll' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -regalloc=pbqp < /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/test/CodeGen/Generic/PBQP.ll # RUN: at line 1
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -regalloc=pbqp
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc -regalloc=pbqp
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'PBQP Register Allocator' on function '@foo'
 #0 0x000055555a1ab5c2 ___interceptor_backtrace /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_common_interceptors.inc:4497:13
 #1 0x000055555e492328 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:13
 #2 0x000055555e48fbc8 llvm::sys::RunSignalHandlers() /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Support/Signals.cpp:0:5
 #3 0x000055555e492d15 SignalHandler(int, siginfo_t*, void*) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:418:13
 #4 0x000055555a1dea1e IsInInterceptorScope /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:77:10
 #5 0x000055555a1dea1e SignalAction(int, void*, void*) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:1137:3
 #6 0x00007ffff7a45250 (/lib/x86_64-linux-gnu/libc.so.6+0x45250)
 #7 0x00007ffff7aa3f1c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0xa3f1c)
 #8 0x00007ffff7a4519e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4519e)
 #9 0x00007ffff7a28902 abort (/lib/x86_64-linux-gnu/libc.so.6+0x28902)
#10 0x000055555a169dbc (/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc+0x4c15dbc)
#11 0x000055555a167bee __sanitizer::Die() /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp:52:5
#12 0x000055555a17ef73 (/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc+0x4c2af73)
#13 0x000055555a77cb4e bool llvm::is_contained<llvm::SmallVector<unsigned int, 32u> const&, unsigned int>(llvm::SmallVector<unsigned int, 32u> const&, unsigned int const&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1908:0
#14 0x000055555a77caf5 unsigned int* std::__1::find[abi:nn210000]<unsigned int*, int>(unsigned int*, unsigned int*, int const&) /home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_msan/include/c++/v1/__algorithm/find.h:176:3
#15 0x000055555a77ca95 data /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:165:36
#16 0x000055555a77ca95 data /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:357:58
#17 0x000055555a77ca95 end /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:360:35
#18 0x000055555a77ca95 end<llvm::OwningArrayRef<unsigned int> > /home/b/sanitizer-x86_64-linux-fast/build/libcxx_install_msan/include/c++/v1/__iterator/access.h:51:14
#19 0x000055555a77ca95 end_impl<const llvm::OwningArrayRef<unsigned int> &> /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ADL.h:37:10
#20 0x000055555a77ca95 adl_end<const llvm::OwningArrayRef<unsigned int> &> /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ADL.h:88:10
#21 0x000055555a77ca95 bool llvm::is_contained<llvm::OwningArrayRef<unsigned int> const&, int>(llvm::OwningArrayRef<unsigned int> const&, int const&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:1915:12
#22 0x000055555a77ba3d llvm::PBQP::RegAlloc::NodeMetadata::isConservativelyAllocatable() const /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:242:5
#23 0x000055555d22361e llvm::PBQP::RegAlloc::RegAllocSolverImpl::setup() /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:412:9
#24 0x000055555d2231dc llvm::PBQP::RegAlloc::RegAllocSolverImpl::solve() /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:0:5
#25 0x000055555d214e04 llvm::PBQP::RegAlloc::solve(llvm::PBQP::RegAlloc::PBQPRAGraph&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:519:1

```

</details>

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


More information about the llvm-commits mailing list