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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 28 00:21:26 PDT 2025


nikic wrote:

>From the buildbot log:
```
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
#26 0x000055555d213fca (anonymous namespace)::RegAllocPBQP::runOnMachineFunction(llvm::MachineFunction&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/CodeGen/RegAllocPBQP.cpp:0:33
#27 0x000055555cf32873 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:0:10
#28 0x000055555d622cbd llvm::FPPassManager::runOnFunction(llvm::Function&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1406:27
#29 0x000055555d62af5e getNext /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ilist_node_base.h:42:38
#30 0x000055555d62af5e getNext /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ilist_node.h:119:59
#31 0x000055555d62af5e operator++ /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/include/llvm/ADT/ilist_iterator.h:187:57
#32 0x000055555d62af5e llvm::FPPassManager::runOnModule(llvm::Module&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1451:20
#33 0x000055555d6235f7 runOnModule /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1521:27
#34 0x000055555d6235f7 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:539:44
#35 0x000055555a1f3751 compileModule /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llc/llc.cpp:755:17
#36 0x000055555a1f3751 main /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/tools/llc/llc.cpp:400:22
#37 0x00007ffff7a2a3b8 (/lib/x86_64-linux-gnu/libc.so.6+0x2a3b8)
#38 0x00007ffff7a2a47b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a47b)
#39 0x000055555a1525a5 _start (/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/llc+0x4bfe5a5)
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/test/CodeGen/Generic/Output/PBQP.ll.script: line 1: 372806 Aborted                 /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
--
********************
```

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


More information about the llvm-commits mailing list