Skip to content

Conversation

@kazutakahirata
Copy link
Contributor

@kazutakahirata kazutakahirata commented Apr 27, 2025

No description provided.

NodeMetadata::optUnsafeEdges returns ArrayRef, packaging
OptUnsafeEdges and NumOpts.  This in turn allows use of llvm::copy and
llvm::is_contained elsewhere in the class.
@kazutakahirata kazutakahirata requested a review from kuhar April 27, 2025 18:16
Copy link
Contributor

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we replace the member with OwningArrayRef instead?

@kazutakahirata
Copy link
Contributor Author

Can we replace the member with OwningArrayRef instead?

I don't think so. The array could be reallocated in the middle of lifetime:

  void setup(const Vector& Costs) {
    NumOpts = Costs.getLength() - 1;
    OptUnsafeEdges = std::unique_ptr<unsigned[]>(new unsigned[NumOpts]());
  }

@nikic
Copy link
Contributor

nikic commented Apr 27, 2025

Can we replace the member with OwningArrayRef instead?

I don't think so. The array could be reallocated in the middle of lifetime:

OwningArrayRef has operator= so I think that should be ok?

@kazutakahirata kazutakahirata changed the title [llvm] Add NodeMetadata::optUnsafeEdges (NFC) [llvm] Use OwningArrayRef in NodeMetadata (NFC) Apr 27, 2025
@kazutakahirata
Copy link
Contributor Author

Can we replace the member with OwningArrayRef instead?

I don't think so. The array could be reallocated in the middle of lifetime:

OwningArrayRef has operator= so I think that should be ok?

You are right. I now use OwningArrayRef in the latest revision.

Copy link
Contributor

@nikic nikic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kazutakahirata kazutakahirata changed the title [llvm] Use OwningArrayRef in NodeMetadata (NFC) [CodeGen] Use OwningArrayRef in NodeMetadata (NFC) Apr 27, 2025
@kazutakahirata kazutakahirata merged commit 08beaa8 into llvm:main Apr 27, 2025
7 of 11 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_001_range_PBQP branch April 27, 2025 21:12
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 27, 2025

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

Here is the relevant piece of the build log for the reference
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

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 27, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-msan running on sanitizer-buildbot9 while building llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/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: 88031 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 
FAIL: LLVM :: CodeGen/Generic/PBQP.ll (35232 of 88031)
******************** TEST 'LLVM :: CodeGen/Generic/PBQP.ll' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -regalloc=pbqp < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/Generic/PBQP.ll # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/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-aarch64-linux-bootstrap-msan/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 0x0000aaeb2ecd4780 ___interceptor_backtrace /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_common_interceptors.inc:4513:13
 #1 0x0000aaeb360a9ff8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:808:7
 #2 0x0000aaeb360a4b5c llvm::sys::RunSignalHandlers() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/Support/Signals.cpp:106:18
 #3 0x0000aaeb360aad88 SignalHandler(int, siginfo_t*, void*) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
 #4 0x0000aaeb2ed068ac IsInInterceptorScope /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:77:10
 #5 0x0000aaeb2ed068ac SignalAction(int, void*, void*) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:1137:3
 #6 0x0000f95e10baa8f8 (linux-vdso.so.1+0x8f8)
 #7 0x0000f95e10657608 (/lib/aarch64-linux-gnu/libc.so.6+0x87608)
 #8 0x0000f95e1060cb3c raise (/lib/aarch64-linux-gnu/libc.so.6+0x3cb3c)
 #9 0x0000f95e105f7e00 abort (/lib/aarch64-linux-gnu/libc.so.6+0x27e00)
#10 0x0000aaeb2ec9447c __sanitizer::Atexit(void (*)()) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp:168:10
#11 0x0000aaeb2ec922b8 __sanitizer::Die() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp:52:5
#12 0x0000aaeb2eca7bb0 __msan_warning_with_origin /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/msan.cpp:409:0
#13 0x0000aaeb3402a93c size /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan/include/c++/v1/__vector/vector.h:383:41
#14 0x0000aaeb3402a93c getNode /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/PBQP/Graph.h:185:7
#15 0x0000aaeb3402a93c getNodeDegree /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/PBQP/Graph.h:501:14
#16 0x0000aaeb3402a93c llvm::PBQP::RegAlloc::RegAllocSolverImpl::setup() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:407:13
#17 0x0000aaeb34029b64 llvm::PBQP::RegAlloc::RegAllocSolverImpl::solve() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:0:5
#18 0x0000aaeb34018498 __root /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan/include/c++/v1/__tree:950:54
#19 0x0000aaeb34018498 ~__tree /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan/include/c++/v1/__tree:1518:11
#20 0x0000aaeb34018498 ~set /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan/include/c++/v1/set:710:117
#21 0x0000aaeb34018498 ~RegAllocSolverImpl /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:264:7
#22 0x0000aaeb34018498 llvm::PBQP::RegAlloc::solve(llvm::PBQP::RegAlloc::PBQPRAGraph&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:519:1
#23 0x0000aaeb34015a54 (anonymous namespace)::RegAllocPBQP::runOnMachineFunction(llvm::MachineFunction&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/CodeGen/RegAllocPBQP.cpp:0:33
#24 0x0000aaeb33a49250 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:0:10
#25 0x0000aaeb347f9d08 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
Step 11 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/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: 88031 tests, 72 workers --
Testing:  0.. 10.. 20.. 30.. 
FAIL: LLVM :: CodeGen/Generic/PBQP.ll (35232 of 88031)
******************** TEST 'LLVM :: CodeGen/Generic/PBQP.ll' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/llc -regalloc=pbqp < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/Generic/PBQP.ll # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/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-aarch64-linux-bootstrap-msan/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 0x0000aaeb2ecd4780 ___interceptor_backtrace /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_common_interceptors.inc:4513:13
 #1 0x0000aaeb360a9ff8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:808:7
 #2 0x0000aaeb360a4b5c llvm::sys::RunSignalHandlers() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/Support/Signals.cpp:106:18
 #3 0x0000aaeb360aad88 SignalHandler(int, siginfo_t*, void*) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
 #4 0x0000aaeb2ed068ac IsInInterceptorScope /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:77:10
 #5 0x0000aaeb2ed068ac SignalAction(int, void*, void*) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:1137:3
 #6 0x0000f95e10baa8f8 (linux-vdso.so.1+0x8f8)
 #7 0x0000f95e10657608 (/lib/aarch64-linux-gnu/libc.so.6+0x87608)
 #8 0x0000f95e1060cb3c raise (/lib/aarch64-linux-gnu/libc.so.6+0x3cb3c)
 #9 0x0000f95e105f7e00 abort (/lib/aarch64-linux-gnu/libc.so.6+0x27e00)
#10 0x0000aaeb2ec9447c __sanitizer::Atexit(void (*)()) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp:168:10
#11 0x0000aaeb2ec922b8 __sanitizer::Die() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp:52:5
#12 0x0000aaeb2eca7bb0 __msan_warning_with_origin /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/msan.cpp:409:0
#13 0x0000aaeb3402a93c size /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan/include/c++/v1/__vector/vector.h:383:41
#14 0x0000aaeb3402a93c getNode /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/PBQP/Graph.h:185:7
#15 0x0000aaeb3402a93c getNodeDegree /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/PBQP/Graph.h:501:14
#16 0x0000aaeb3402a93c llvm::PBQP::RegAlloc::RegAllocSolverImpl::setup() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:407:13
#17 0x0000aaeb34029b64 llvm::PBQP::RegAlloc::RegAllocSolverImpl::solve() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:0:5
#18 0x0000aaeb34018498 __root /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan/include/c++/v1/__tree:950:54
#19 0x0000aaeb34018498 ~__tree /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan/include/c++/v1/__tree:1518:11
#20 0x0000aaeb34018498 ~set /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan/include/c++/v1/set:710:117
#21 0x0000aaeb34018498 ~RegAllocSolverImpl /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:264:7
#22 0x0000aaeb34018498 llvm::PBQP::RegAlloc::solve(llvm::PBQP::RegAlloc::PBQPRAGraph&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:519:1
#23 0x0000aaeb34015a54 (anonymous namespace)::RegAllocPBQP::runOnMachineFunction(llvm::MachineFunction&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/CodeGen/RegAllocPBQP.cpp:0:33
#24 0x0000aaeb33a49250 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:0:10
#25 0x0000aaeb347f9d08 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
Step 16 (stage2/msan_track_origins check) failure: stage2/msan_track_origins check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/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: 88031 tests, 72 workers --
Testing:  0.. 10.. 20.. 30..
FAIL: LLVM :: CodeGen/Generic/PBQP.ll (35005 of 88031)
******************** TEST 'LLVM :: CodeGen/Generic/PBQP.ll' FAILED ********************
Exit Code: 134

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/llc -regalloc=pbqp < /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/test/CodeGen/Generic/PBQP.ll # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/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-aarch64-linux-bootstrap-msan/build/llvm_build_msan_track_origins/bin/llc -regalloc=pbqp
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'PBQP Register Allocator' on function '@foo'
 #0 0x0000aaaaaf579bc0 ___interceptor_backtrace /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_common_interceptors.inc:4513:13
 #1 0x0000aaaab97637dc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:13
 #2 0x0000aaaab975c1b4 llvm::sys::RunSignalHandlers() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/Support/Signals.cpp:106:18
 #3 0x0000aaaab9764a70 SignalHandler(int, siginfo_t*, void*) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
 #4 0x0000aaaaaf5abcec IsInInterceptorScope /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:77:10
 #5 0x0000aaaaaf5abcec SignalAction(int, void*, void*) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp:1137:3
 #6 0x0000fffff7ffb8f8 (linux-vdso.so.1+0x8f8)
 #7 0x0000fffff79e7608 (/lib/aarch64-linux-gnu/libc.so.6+0x87608)
 #8 0x0000fffff799cb3c raise (/lib/aarch64-linux-gnu/libc.so.6+0x3cb3c)
 #9 0x0000fffff7987e00 abort (/lib/aarch64-linux-gnu/libc.so.6+0x27e00)
#10 0x0000aaaaaf5398bc __sanitizer::Atexit(void (*)()) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp:168:10
#11 0x0000aaaaaf5376f8 __sanitizer::Die() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp:52:5
#12 0x0000aaaaaf54d088 __msan_init /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/compiler-rt/lib/msan/msan.cpp:444:0
#13 0x0000aaaab6911504 llvm::PBQP::RegAlloc::RegAllocSolverImpl::setup() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan_track_origins/include/c++/v1/__algorithm/find.h:0:41
#14 0x0000aaaab6910278 llvm::PBQP::RegAlloc::RegAllocSolverImpl::solve() /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:0:5
#15 0x0000aaaab68f5ed4 __root /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan_track_origins/include/c++/v1/__tree:950:54
#16 0x0000aaaab68f5ed4 ~__tree /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan_track_origins/include/c++/v1/__tree:1518:11
#17 0x0000aaaab68f5ed4 ~set /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/libcxx_install_msan_track_origins/include/c++/v1/set:710:117
#18 0x0000aaaab68f5ed4 ~RegAllocSolverImpl /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:264:7
#19 0x0000aaaab68f5ed4 llvm::PBQP::RegAlloc::solve(llvm::PBQP::RegAlloc::PBQPRAGraph&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/include/llvm/CodeGen/RegAllocPBQP.h:519:1
#20 0x0000aaaab68f1204 (anonymous namespace)::RegAllocPBQP::runOnMachineFunction(llvm::MachineFunction&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/CodeGen/RegAllocPBQP.cpp:0:33
#21 0x0000aaaab60cf808 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:0:10
#22 0x0000aaaab74087f4 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
#23 0x0000aaaab7424990 llvm::FPPassManager::runOnModule(llvm::Module&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1451:20
#24 0x0000aaaab740a6bc runOnModule /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
#25 0x0000aaaab740a6bc llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:539:44

@qinkunbao
Copy link
Member

qinkunbao commented Apr 28, 2025

@nikic
Copy link
Contributor

nikic commented Apr 28, 2025

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
--
********************

fmayer added a commit that referenced this pull request Apr 28, 2025
fmayer added a commit that referenced this pull request Apr 28, 2025
Reverts #137539

This breaks the MSan buildbot. Please either fix the build or merge this
revert.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
)

Reverts llvm#137539

This breaks the MSan buildbot. Please either fix the build or merge this
revert.
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request May 6, 2025
…" (#137684)

Reverts llvm/llvm-project#137539

This breaks the MSan buildbot. Please either fix the build or merge this
revert.
GeorgeARM pushed a commit to GeorgeARM/llvm-project that referenced this pull request May 7, 2025
)

Reverts llvm#137539

This breaks the MSan buildbot. Please either fix the build or merge this
revert.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants