Closed
Description
Broken between b68df87 and 4399f2a
reproducer.zip
ld.lld: /scratch3/opt/llvm-clang/llvm-project-nightly/llvm/lib/Transforms/IPO/AttributorAttributes.cpp:1686: {anonymous}::AAPointerInfoFloating::updateImpl(llvm::Attributor&)::<lambda(const llvm::Use&, bool&)>: Assertion `!PtrOI.isUnassigned() && "Cannot assign if the current Ptr was not visited!"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /scratch3/packages/llvm/main-20240813/bin/ld.lld --no-undefined -shared --no-undefined /tmp/qmcapp.cpp-amdgcn-amd-amdhsa-gfx1030-d63e3d.o /tmp/CoulombPBCAA.cpp-amdgcn-amd-amdhsa-gfx1030-1f288a.o /tmp/LCAOrbitalSet.cpp-amdgcn-amd-amdhsa-gfx1030-e8039e.o /tmp/MultiQuinticSpline1D.cpp-amdgcn-amd-amdhsa-gfx1030-c00d82.o /tmp/SoaLocalizedBasisSet.cpp-amdgcn-amd-amdhsa-gfx1030-a14a62.o /tmp/HybridRepSetReader.cpp-amdgcn-amd-amdhsa-gfx1030-1a071d.o /tmp/BsplineFunctor.cpp-amdgcn-amd-amdhsa-gfx1030-eb178b.o /tmp/DiracDeterminantBatched.cpp-amdgcn-amd-amdhsa-gfx1030-32b19c.o /tmp/MultiDiracDeterminant.2.cpp-amdgcn-amd-amdhsa-gfx1030-0c3771.o /tmp/SplineC2ROMPTarget.cpp-amdgcn-amd-amdhsa-gfx1030-804f67.o /tmp/MultiSlaterDetTableMethod.cpp-amdgcn-amd-amdhsa-gfx1030-01ac0b.o /tmp/DynamicCoordinatesBuilder.cpp-amdgcn-amd-amdhsa-gfx1030-dfbe54.o /tmp/StructFact.cpp-amdgcn-amd-amdhsa-gfx1030-af2e32.o /tmp/createDistanceTableAAOMPTarget.cpp-amdgcn-amd-amdhsa-gfx1030-b66fe3.o /tmp/createDistanceTableABOMPTarget.cpp-amdgcn-amd-amdhsa-gfx1030-13f689.o /tmp/SoaSphericalTensor.cpp-amdgcn-amd-amdhsa-gfx1030-b5027b.o /tmp/ompBLAS.cpp-amdgcn-amd-amdhsa-gfx1030-3dd2be.o /tmp/devicertl-amdgpu-gfx1030-amdgcn-amd-amdhsa-gfx1030-b26291.o -plugin-opt=mcpu=gfx1030 -o /tmp/qmcpack.amdgcn.gfx1030-f1e811.img
1. Running pass "amdgpu-attributor" on module "ld-temp.o"
#0 0x0000556f3069e2c0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x8ab2c0)
#1 0x0000556f3069b6df llvm::sys::RunSignalHandlers() (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x8a86df)
#2 0x0000556f3069b835 SignalHandler(int) Signals.cpp:0:0
#3 0x00007f0972f3c520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007f0972f909fc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#5 0x00007f0972f909fc __pthread_kill_internal ./nptl/pthread_kill.c:78:10
#6 0x00007f0972f909fc pthread_kill ./nptl/pthread_kill.c:89:10
#7 0x00007f0972f3c476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
#8 0x00007f0972f227f3 abort ./stdlib/abort.c:81:7
#9 0x00007f0972f2271b _nl_load_domain ./intl/loadmsgcat.c:1177:9
#10 0x00007f0972f33e96 (/lib/x86_64-linux-gnu/libc.so.6+0x39e96)
#11 0x0000556f325de687 (anonymous namespace)::AAPointerInfoFloating::updateImpl(llvm::Attributor&)::'lambda0'(llvm::Use const&, bool&)::operator()(llvm::Use const&, bool&) const AttributorAttributes.cpp:0:0
#12 0x0000556f32553851 llvm::Attributor::checkForAllUses(llvm::function_ref<bool (llvm::Use const&, bool&)>, llvm::AbstractAttribute const&, llvm::Value const&, bool, llvm::DepClassTy, bool, llvm::function_ref<bool (llvm::Use const&, llvm::Use const&)>) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x2760851)
#13 0x0000556f3257a799 (anonymous namespace)::AAPointerInfoFloating::updateImpl(llvm::Attributor&) AttributorAttributes.cpp:0:0
#14 0x0000556f3252c79a llvm::AbstractAttribute::update(llvm::Attributor&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x273979a)
#15 0x0000556f325415ca llvm::Attributor::updateAA(llvm::AbstractAttribute&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x274e5ca)
#16 0x0000556f312a250b llvm::AAPointerInfo const* llvm::Attributor::getOrCreateAAFor<llvm::AAPointerInfo>(llvm::IRPosition, llvm::AbstractAttribute const*, llvm::DepClassTy, bool, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x14af50b)
#17 0x0000556f32559d38 bool llvm::function_ref<bool (llvm::Value&)>::callback_fn<bool getPotentialCopiesOfMemoryValue<true, llvm::LoadInst>(llvm::Attributor&, llvm::LoadInst&, llvm::SmallSetVector<llvm::Value*, 4u>&, llvm::SmallSetVector<llvm::Instruction*, 4u>*, llvm::AbstractAttribute const&, bool&, bool)::'lambda'(llvm::Value&)>(long, llvm::Value&) Attributor.cpp:0:0
#18 0x0000556f3257a3a1 (anonymous namespace)::AAUnderlyingObjectsImpl::forallUnderlyingObjects(llvm::function_ref<bool (llvm::Value&)>, llvm::AA::ValueScope) const AttributorAttributes.cpp:0:0
#19 0x0000556f32545027 bool getPotentialCopiesOfMemoryValue<true, llvm::LoadInst>(llvm::Attributor&, llvm::LoadInst&, llvm::SmallSetVector<llvm::Value*, 4u>&, llvm::SmallSetVector<llvm::Instruction*, 4u>*, llvm::AbstractAttribute const&, bool&, bool) Attributor.cpp:0:0
#20 0x0000556f325cab4d (anonymous namespace)::AAPotentialValuesFloating::updateImpl(llvm::Attributor&) AttributorAttributes.cpp:0:0
#21 0x0000556f3252c79a llvm::AbstractAttribute::update(llvm::Attributor&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x273979a)
#22 0x0000556f325415ca llvm::Attributor::updateAA(llvm::AbstractAttribute&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x274e5ca)
#23 0x0000556f32555dcb llvm::AAPotentialValues const* llvm::Attributor::getOrCreateAAFor<llvm::AAPotentialValues>(llvm::IRPosition, llvm::AbstractAttribute const*, llvm::DepClassTy, bool, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x2762dcb)
#24 0x0000556f325560ae llvm::Attributor::getAssumedSimplifiedValues(llvm::IRPosition const&, llvm::AbstractAttribute const*, llvm::SmallVectorImpl<llvm::AA::ValueAndContext>&, llvm::AA::ValueScope, bool&, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x27630ae)
#25 0x0000556f32556a14 llvm::Attributor::getAssumedSimplified(llvm::IRPosition const&, llvm::AbstractAttribute const*, bool&, llvm::AA::ValueScope) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x2763a14)
#26 0x0000556f325ca77d (anonymous namespace)::AAPotentialValuesFloating::updateImpl(llvm::Attributor&) AttributorAttributes.cpp:0:0
#27 0x0000556f3252c79a llvm::AbstractAttribute::update(llvm::Attributor&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x273979a)
#28 0x0000556f325415ca llvm::Attributor::updateAA(llvm::AbstractAttribute&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x274e5ca)
#29 0x0000556f32555dcb llvm::AAPotentialValues const* llvm::Attributor::getOrCreateAAFor<llvm::AAPotentialValues>(llvm::IRPosition, llvm::AbstractAttribute const*, llvm::DepClassTy, bool, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x2762dcb)
#30 0x0000556f325560ae llvm::Attributor::getAssumedSimplifiedValues(llvm::IRPosition const&, llvm::AbstractAttribute const*, llvm::SmallVectorImpl<llvm::AA::ValueAndContext>&, llvm::AA::ValueScope, bool&, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x27630ae)
#31 0x0000556f32556a14 llvm::Attributor::getAssumedSimplified(llvm::IRPosition const&, llvm::AbstractAttribute const*, bool&, llvm::AA::ValueScope) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x2763a14)
#32 0x0000556f325a011c (anonymous namespace)::AAPointerInfoFloating::updateImpl(llvm::Attributor&)::'lambda0'(llvm::Use const&, bool&)::operator()(llvm::Use const&, bool&) const::'lambda2'(llvm::Instruction&, llvm::Value*, llvm::Type&, llvm::ArrayRef<llvm::Value*>, llvm::AAPointerInfo::AccessKind)::operator()(llvm::Instruction&, llvm::Value*, llvm::Type&, llvm::ArrayRef<llvm::Value*>, llvm::AAPointerInfo::AccessKind) const AttributorAttributes.cpp:0:0
#33 0x0000556f325dde8f (anonymous namespace)::AAPointerInfoFloating::updateImpl(llvm::Attributor&)::'lambda0'(llvm::Use const&, bool&)::operator()(llvm::Use const&, bool&) const AttributorAttributes.cpp:0:0
#34 0x0000556f32553851 llvm::Attributor::checkForAllUses(llvm::function_ref<bool (llvm::Use const&, bool&)>, llvm::AbstractAttribute const&, llvm::Value const&, bool, llvm::DepClassTy, bool, llvm::function_ref<bool (llvm::Use const&, llvm::Use const&)>) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x2760851)
#35 0x0000556f3257a799 (anonymous namespace)::AAPointerInfoFloating::updateImpl(llvm::Attributor&) AttributorAttributes.cpp:0:0
#36 0x0000556f3252c79a llvm::AbstractAttribute::update(llvm::Attributor&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x273979a)
#37 0x0000556f325415ca llvm::Attributor::updateAA(llvm::AbstractAttribute&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x274e5ca)
#38 0x0000556f312a250b llvm::AAPointerInfo const* llvm::Attributor::getOrCreateAAFor<llvm::AAPointerInfo>(llvm::IRPosition, llvm::AbstractAttribute const*, llvm::DepClassTy, bool, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x14af50b)
#39 0x0000556f32559d38 bool llvm::function_ref<bool (llvm::Value&)>::callback_fn<bool getPotentialCopiesOfMemoryValue<true, llvm::LoadInst>(llvm::Attributor&, llvm::LoadInst&, llvm::SmallSetVector<llvm::Value*, 4u>&, llvm::SmallSetVector<llvm::Instruction*, 4u>*, llvm::AbstractAttribute const&, bool&, bool)::'lambda'(llvm::Value&)>(long, llvm::Value&) Attributor.cpp:0:0
#40 0x0000556f3257a3a1 (anonymous namespace)::AAUnderlyingObjectsImpl::forallUnderlyingObjects(llvm::function_ref<bool (llvm::Value&)>, llvm::AA::ValueScope) const AttributorAttributes.cpp:0:0
#41 0x0000556f32545027 bool getPotentialCopiesOfMemoryValue<true, llvm::LoadInst>(llvm::Attributor&, llvm::LoadInst&, llvm::SmallSetVector<llvm::Value*, 4u>&, llvm::SmallSetVector<llvm::Instruction*, 4u>*, llvm::AbstractAttribute const&, bool&, bool) Attributor.cpp:0:0
#42 0x0000556f325cab4d (anonymous namespace)::AAPotentialValuesFloating::updateImpl(llvm::Attributor&) AttributorAttributes.cpp:0:0
#43 0x0000556f3252c79a llvm::AbstractAttribute::update(llvm::Attributor&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x273979a)
#44 0x0000556f325415ca llvm::Attributor::updateAA(llvm::AbstractAttribute&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x274e5ca)
#45 0x0000556f32555dcb llvm::AAPotentialValues const* llvm::Attributor::getOrCreateAAFor<llvm::AAPotentialValues>(llvm::IRPosition, llvm::AbstractAttribute const*, llvm::DepClassTy, bool, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x2762dcb)
#46 0x0000556f325560ae llvm::Attributor::getAssumedSimplifiedValues(llvm::IRPosition const&, llvm::AbstractAttribute const*, llvm::SmallVectorImpl<llvm::AA::ValueAndContext>&, llvm::AA::ValueScope, bool&, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x27630ae)
#47 0x0000556f32556a14 llvm::Attributor::getAssumedSimplified(llvm::IRPosition const&, llvm::AbstractAttribute const*, bool&, llvm::AA::ValueScope) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x2763a14)
#48 0x0000556f325ca77d (anonymous namespace)::AAPotentialValuesFloating::updateImpl(llvm::Attributor&) AttributorAttributes.cpp:0:0
#49 0x0000556f3252c79a llvm::AbstractAttribute::update(llvm::Attributor&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x273979a)
#50 0x0000556f325415ca llvm::Attributor::updateAA(llvm::AbstractAttribute&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x274e5ca)
#51 0x0000556f32555dcb llvm::AAPotentialValues const* llvm::Attributor::getOrCreateAAFor<llvm::AAPotentialValues>(llvm::IRPosition, llvm::AbstractAttribute const*, llvm::DepClassTy, bool, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x2762dcb)
#52 0x0000556f325560ae llvm::Attributor::getAssumedSimplifiedValues(llvm::IRPosition const&, llvm::AbstractAttribute const*, llvm::SmallVectorImpl<llvm::AA::ValueAndContext>&, llvm::AA::ValueScope, bool&, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x27630ae)
#53 0x0000556f325e11d7 (anonymous namespace)::AAUnderlyingObjectsImpl::updateImpl(llvm::Attributor&)::'lambda'(llvm::SmallSetVector<llvm::Value*, 8u>&, llvm::AA::ValueScope)::operator()(llvm::SmallSetVector<llvm::Value*, 8u>&, llvm::AA::ValueScope) const AttributorAttributes.cpp:0:0
#54 0x0000556f325e23b6 (anonymous namespace)::AAUnderlyingObjectsImpl::updateImpl(llvm::Attributor&) AttributorAttributes.cpp:0:0
#55 0x0000556f3252c79a llvm::AbstractAttribute::update(llvm::Attributor&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x273979a)
#56 0x0000556f325415ca llvm::Attributor::updateAA(llvm::AbstractAttribute&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x274e5ca)
#57 0x0000556f32544063 llvm::AAUnderlyingObjects const* llvm::Attributor::getOrCreateAAFor<llvm::AAUnderlyingObjects>(llvm::IRPosition, llvm::AbstractAttribute const*, llvm::DepClassTy, bool, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x2751063)
#58 0x0000556f325e0eff (anonymous namespace)::AAAddressSpaceImpl::updateImpl(llvm::Attributor&) AttributorAttributes.cpp:0:0
#59 0x0000556f3252c79a llvm::AbstractAttribute::update(llvm::Attributor&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x273979a)
#60 0x0000556f325415ca llvm::Attributor::updateAA(llvm::AbstractAttribute&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x274e5ca)
#61 0x0000556f3129fcbb llvm::AAAddressSpace const* llvm::Attributor::getOrCreateAAFor<llvm::AAAddressSpace>(llvm::IRPosition, llvm::AbstractAttribute const*, llvm::DepClassTy, bool, bool) (.isra.0) AMDGPUAttributor.cpp:0:0
#62 0x0000556f312a51a8 (anonymous namespace)::runImpl(llvm::Module&, llvm::AnalysisGetter&, llvm::TargetMachine&, llvm::AMDGPUAttributorOptions) (.constprop.0) AMDGPUAttributor.cpp:0:0
#63 0x0000556f312a5af2 llvm::AMDGPUAttributorPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x14b2af2)
#64 0x0000556f3104a4c6 llvm::detail::PassModel<llvm::Module, llvm::AMDGPUAttributorPass, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x12574c6)
#65 0x0000556f33d1a52d llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x3f2752d)
#66 0x0000556f31ce334c runNewPMPasses(llvm::lto::Config const&, llvm::Module&, llvm::TargetMachine*, unsigned int, bool, llvm::ModuleSummaryIndex*, llvm::ModuleSummaryIndex const*) LTOBackend.cpp:0:0
#67 0x0000556f31ce4db8 llvm::lto::opt(llvm::lto::Config const&, llvm::TargetMachine*, unsigned int, llvm::Module&, bool, llvm::ModuleSummaryIndex*, llvm::ModuleSummaryIndex const*, std::vector<unsigned char, std::allocator<unsigned char>> const&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x1ef1db8)
#68 0x0000556f31ce76bc llvm::lto::backend(llvm::lto::Config const&, std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>, unsigned int, llvm::Module&, llvm::ModuleSummaryIndex&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x1ef46bc)
#69 0x0000556f31cda0f6 llvm::lto::LTO::runRegularLTO(std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x1ee70f6)
#70 0x0000556f31cda603 llvm::lto::LTO::run(std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>, std::function<llvm::Expected<std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>> (unsigned int, llvm::StringRef, llvm::Twine const&)>) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x1ee7603)
#71 0x0000556f30890367 lld::elf::BitcodeCompiler::compile() (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0xa9d367)
#72 0x0000556f307da677 void lld::elf::LinkerDriver::compileBitcodeFiles<llvm::object::ELFType<(llvm::endianness)1, true>>(bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x9e7677)
#73 0x0000556f307f6fc2 void lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::endianness)1, true>>(llvm::opt::InputArgList&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0xa03fc2)
#74 0x0000556f307fe864 lld::elf::LinkerDriver::linkerMain(llvm::ArrayRef<char const*>) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0xa0b864)
#75 0x0000556f308003b0 lld::elf::link(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, bool, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0xa0d3b0)
#76 0x0000556f306d7610 lld::unsafeLldMain(llvm::ArrayRef<char const*>, llvm::raw_ostream&, llvm::raw_ostream&, llvm::ArrayRef<lld::DriverDef>, bool) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x8e4610)
#77 0x0000556f30610cc6 lld_main(int, char**, llvm::ToolContext const&) (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x81dcc6)
#78 0x0000556f3055075b main (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x75d75b)
#79 0x00007f0972f23d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#80 0x00007f0972f23e40 call_init ./csu/../csu/libc-start.c:128:20
#81 0x00007f0972f23e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#82 0x0000556f30610525 _start (/scratch3/packages/llvm/main-20240813/bin/ld.lld+0x81d525)