[llvm] [AMDGPU] Gate TBUFFER merging on relaxed OOB mode (PR #212695)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 01:03:43 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 135113 tests passed
* 3148 tests skipped

All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.

<details>
<summary>[code=4294967295] bin/mlir-opt.exe</summary>

```
FAILED: [code=4294967295] bin/mlir-opt.exe
C:\Windows\system32\cmd.exe /C "cd . && C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E vs_link_exe --msvc-ver=1944 --intdir=tools\mlir\tools\mlir-opt\CMakeFiles\mlir-opt.dir --rc="C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\rc.exe" --mt="C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\mt.exe" --manifests  -- C:\clang\clang-msvc\bin\lld-link.exe /nologo @CMakeFiles\mlir-opt.rsp  /out:bin\mlir-opt.exe /implib:lib\mlir-opt.lib /pdb:bin\mlir-opt.pdb /version:0.0 /MANIFEST:NO /Brepro /INCREMENTAL:NO /subsystem:console  /STACK:10000000 && cd ."
LINK: command "C:\clang\clang-msvc\bin\lld-link.exe /nologo @CMakeFiles\mlir-opt.rsp /out:bin\mlir-opt.exe /implib:lib\mlir-opt.lib /pdb:bin\mlir-opt.pdb /version:0.0 /MANIFEST:NO /Brepro /INCREMENTAL:NO /subsystem:console /STACK:10000000" failed (exit code 1) with the following output:
lld-link: error: undefined symbol: class llvm::DenseMap<unsigned int, struct llvm::memprof::FrameStat, struct llvm::DenseMapInfo<unsigned int, void>, struct llvm::detail::DenseMapPair<unsigned int, struct llvm::memprof::FrameStat>> __cdecl llvm::memprof::computeFrameHistogram<unsigned int>(class llvm::MapVector<unsigned __int64, class llvm::SmallVector<unsigned int, 12>, class llvm::DenseMap<unsigned __int64, unsigned int, struct llvm::DenseMapInfo<unsigned __int64, void>, struct llvm::detail::DenseMapPair<unsigned __int64, unsigned int>>, class llvm::SmallVector<struct std::pair<unsigned __int64, class llvm::SmallVector<unsigned int, 12>>, 0>, 0> &)
>>> referenced by LLVMBitWriter.lib(BitcodeWriter.cpp.obj):(class llvm::DenseMap<unsigned __int64, unsigned int, struct llvm::DenseMapInfo<unsigned __int64, void>, struct llvm::detail::DenseMapPair<unsigned __int64, unsigned int>> __cdecl writeMemoryProfileRadixTree(class llvm::MapVector<unsigned __int64, class llvm::SmallVector<unsigned int, 12>, class llvm::DenseMap<unsigned __int64, unsigned int, struct llvm::DenseMapInfo<unsigned __int64, void>, struct llvm::detail::DenseMapPair<unsigned __int64, unsigned int>>, class llvm::SmallVector<struct std::pair<unsigned __int64, class llvm::SmallVector<unsigned int, 12>>, 0>, 0> &&, class llvm::BitstreamWriter &, unsigned int))

lld-link: error: undefined symbol: public: void __cdecl llvm::memprof::CallStackRadixTreeBuilder<unsigned int>::build(class llvm::MapVector<unsigned __int64, class llvm::SmallVector<unsigned int, 12>, class llvm::DenseMap<unsigned __int64, unsigned int, struct llvm::DenseMapInfo<unsigned __int64, void>, struct llvm::detail::DenseMapPair<unsigned __int64, unsigned int>>, class llvm::SmallVector<struct std::pair<unsigned __int64, class llvm::SmallVector<unsigned int, 12>>, 0>, 0> &&, class llvm::DenseMap<unsigned int, unsigned int, struct llvm::DenseMapInfo<unsigned int, void>, struct llvm::detail::DenseMapPair<unsigned int, unsigned int>> const *, class llvm::DenseMap<unsigned int, struct llvm::memprof::FrameStat, struct llvm::DenseMapInfo<unsigned int, void>, struct llvm::detail::DenseMapPair<unsigned int, struct llvm::memprof::FrameStat>> &)
>>> referenced by LLVMBitWriter.lib(BitcodeWriter.cpp.obj):(class llvm::DenseMap<unsigned __int64, unsigned int, struct llvm::DenseMapInfo<unsigned __int64, void>, struct llvm::detail::DenseMapPair<unsigned __int64, unsigned int>> __cdecl writeMemoryProfileRadixTree(class llvm::MapVector<unsigned __int64, class llvm::SmallVector<unsigned int, 12>, class llvm::DenseMap<unsigned __int64, unsigned int, struct llvm::DenseMapInfo<unsigned __int64, void>, struct llvm::detail::DenseMapPair<unsigned __int64, unsigned int>>, class llvm::SmallVector<struct std::pair<unsigned __int64, class llvm::SmallVector<unsigned int, 12>>, 0>, 0> &&, class llvm::BitstreamWriter &, unsigned int))

lld-link: error: undefined symbol: class llvm::cl::opt<int, 0, class llvm::cl::parser<int>> llvm::ProfileSummaryCutoffHot
>>> referenced by LLVMAnalysis.lib(ProfileSummaryInfo.cpp.obj):(private: void __cdecl llvm::ProfileSummaryInfo::computeThresholds(void))
>>> referenced by LLVMInstrumentation.lib(IndirectCallPromotion.cpp.obj):(public: bool __cdecl `anonymous namespace'::IndirectCallPromoter::processFunction(class llvm::ProfileSummaryInfo *))

lld-link: error: undefined symbol: public: static struct llvm::ProfileSummaryEntry const & __cdecl llvm::ProfileSummaryBuilder::getEntryForPercentile(class std::vector<struct llvm::ProfileSummaryEntry, class std::allocator<struct llvm::ProfileSummaryEntry>> const &, unsigned __int64)
>>> referenced by LLVMAnalysis.lib(ProfileSummaryInfo.cpp.obj):(private: void __cdecl llvm::ProfileSummaryInfo::computeThresholds(void))
>>> referenced by LLVMAnalysis.lib(ProfileSummaryInfo.cpp.obj):(private: class std::optional<unsigned __int64> __cdecl llvm::ProfileSummaryInfo::computeThreshold(int) const)

lld-link: error: undefined symbol: public: static unsigned __int64 __cdecl llvm::ProfileSummaryBuilder::getHotCountThreshold(class std::vector<struct llvm::ProfileSummaryEntry, class std::allocator<struct llvm::ProfileSummaryEntry>> const &)
>>> referenced by LLVMAnalysis.lib(ProfileSummaryInfo.cpp.obj):(private: void __cdecl llvm::ProfileSummaryInfo::computeThresholds(void))

lld-link: error: undefined symbol: public: static unsigned __int64 __cdecl llvm::ProfileSummaryBuilder::getColdCountThreshold(class std::vector<struct llvm::ProfileSummaryEntry, class std::allocator<struct llvm::ProfileSummaryEntry>> const &)
>>> referenced by LLVMAnalysis.lib(ProfileSummaryInfo.cpp.obj):(private: void __cdecl llvm::ProfileSummaryInfo::computeThresholds(void))

lld-link: error: undefined symbol: class llvm::cl::opt<unsigned int, 0, class llvm::cl::parser<unsigned int>> llvm::ProfileSummaryHugeWorkingSetSizeThreshold
>>> referenced by LLVMAnalysis.lib(ProfileSummaryInfo.cpp.obj):(private: void __cdecl llvm::ProfileSummaryInfo::computeThresholds(void))
>>> referenced by LLVMAnalysis.lib(ProfileSummaryInfo.cpp.obj):(private: void __cdecl llvm::ProfileSummaryInfo::computeThresholds(void))

lld-link: error: undefined symbol: class llvm::cl::opt<unsigned int, 0, class llvm::cl::parser<unsigned int>> llvm::ProfileSummaryLargeWorkingSetSizeThreshold
>>> referenced by LLVMAnalysis.lib(ProfileSummaryInfo.cpp.obj):(private: void __cdecl llvm::ProfileSummaryInfo::computeThresholds(void))

lld-link: error: undefined symbol: class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> __cdecl llvm::getInstrProfSectionName(enum llvm::InstrProfSectKind, enum llvm::Triple::ObjectFormatType, bool)
>>> referenced by LLVMCodeGen.lib(TargetLoweringObjectFileImpl.cpp.obj):(class llvm::MCSection * __cdecl selectExplicitSectionGlobal(class llvm::GlobalObject const *, class llvm::SectionKind, class llvm::TargetMachine const &, class llvm::MCContext &, class llvm::Mangler &, unsigned int &, bool, bool))
>>> referenced by LLVMCodeGen.lib(TargetLoweringObjectFileImpl.cpp.obj):(class llvm::MCSection * __cdecl selectExplicitSectionGlobal(class llvm::GlobalObject const *, class llvm::SectionKind, class llvm::TargetMachine const &, class llvm::MCContext &, class llvm::Mangler &, unsigned int &, bool, bool))
>>> referenced by LLVMCodeGen.lib(TargetLoweringObjectFileImpl.cpp.obj):(class llvm::MCSection * __cdecl selectExplicitSectionGlobal(class llvm::GlobalObject const *, class llvm::SectionKind, class llvm::TargetMachine const &, class llvm::MCContext &, class llvm::Mangler &, unsigned int &, bool, bool))
>>> referenced 19 more times

lld-link: error: undefined symbol: class llvm::SmallVector<struct InstrProfValueData, 4> __cdecl llvm::getValueProfDataFromInst(class llvm::Instruction const &, enum llvm::InstrProfValueKind, unsigned int, unsigned __int64 &, bool)
>>> referenced by LLVMTransformUtils.lib(LowerMemIntrinsics.cpp.obj):(class std::optional<unsigned __int64> __cdecl `anonymous namespace'::getAverageMemOpLoopTripCount(class llvm::MemIntrinsic const &))
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(protected: bool __cdecl `anonymous namespace'::SampleProfileLoader::tryPromoteAndInlineCandidate(class llvm::Function &, struct `anonymous namespace'::InlineCandidate &, unsigned __int64, unsigned __int64 &, class Function::SmallVector<class llvm::CallBase *, 8> *))
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(void __cdecl updateIDTMetaData(class llvm::Instruction &, class llvm::SmallVectorImpl<struct InstrProfValueData> const &, unsigned __int64))
>>> referenced 7 more times

lld-link: error: undefined symbol: public: static class llvm::ErrorOr<class std::unique_ptr<class llvm::sampleprof::SampleProfileReader, struct std::default_delete<class llvm::sampleprof::SampleProfileReader>>> __cdecl llvm::sampleprof::SampleProfileReader::create(class llvm::StringRef, class llvm::LLVMContext &, class llvm::vfs::FileSystem &, enum llvm::sampleprof::FSDiscriminatorPass, class llvm::StringRef)
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(public: bool __cdecl llvm::MIRProfileLoader::doInitialization(class llvm::Module &))
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(public: class llvm::PreservedAnalyses __cdecl llvm::SampleProfileLoaderPass::run(class llvm::Module &, class llvm::AnalysisManager<class llvm::Module> &))

lld-link: error: undefined symbol: class std::error_category const & __cdecl llvm::sampleprof_category(void)
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(public: bool __cdecl llvm::MIRProfileLoader::doInitialization(class llvm::Module &))
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(public: bool __cdecl llvm::MIRProfileLoader::doInitialization(class llvm::Module &))
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(public: class llvm::PreservedAnalyses __cdecl llvm::SampleProfileLoaderPass::run(class llvm::Module &, class llvm::AnalysisManager<class llvm::Module> &))
>>> referenced 1 more times

lld-link: error: undefined symbol: public: void __cdecl llvm::sampleprof::SampleProfileReaderItaniumRemapper::applyRemapping(class llvm::LLVMContext &)
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(public: bool __cdecl llvm::MIRProfileLoader::doInitialization(class llvm::Module &))
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(public: class llvm::PreservedAnalyses __cdecl llvm::SampleProfileLoaderPass::run(class llvm::Module &, class llvm::AnalysisManager<class llvm::Module> &))

lld-link: error: undefined symbol: public: static struct std::atomic<bool> llvm::sampleprof::FunctionSamples::UseMD5
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(public: bool __cdecl llvm::MIRProfileLoader::doInitialization(class llvm::Module &))
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(public: class llvm::PreservedAnalyses __cdecl llvm::SampleProfileLoaderPass::run(class llvm::Module &, class llvm::AnalysisManager<class llvm::Module> &))
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(public: class llvm::PreservedAnalyses __cdecl llvm::SampleProfileLoaderPass::run(class llvm::Module &, class llvm::AnalysisManager<class llvm::Module> &))
>>> referenced 13 more times

lld-link: error: undefined symbol: public: static struct std::atomic<bool> llvm::sampleprof::FunctionSamples::ProfileIsProbeBased
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(public: bool __cdecl llvm::MIRProfileLoader::runOnFunction(class llvm::MachineFunction &))
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(protected: virtual class llvm::ErrorOr<unsigned __int64> __cdecl llvm::SampleProfileLoaderBaseImpl<class llvm::MachineFunction>::getInstWeight(class llvm::MachineInstr const &))
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(protected: virtual class llvm::ErrorOr<unsigned __int64> __cdecl llvm::SampleProfileLoaderBaseImpl<class llvm::MachineFunction>::getProbeWeight(class llvm::MachineInstr const &))
>>> referenced 18 more times

lld-link: error: undefined symbol: public: class std::optional<class llvm::StringRef> __cdecl llvm::sampleprof::SampleProfileReaderItaniumRemapper::lookUpNameInProfile(class llvm::StringRef)
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(public: class llvm::sampleprof::FunctionSamples * __cdecl llvm::sampleprof::SampleProfileReader::getSamplesFor(class llvm::StringRef))
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(public: class llvm::PreservedAnalyses __cdecl llvm::SampleProfileLoaderPass::run(class llvm::Module &, class llvm::AnalysisManager<class llvm::Module> &))
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(public: class llvm::PreservedAnalyses __cdecl llvm::SampleProfileLoaderPass::run(class llvm::Module &, class llvm::AnalysisManager<class llvm::Module> &))

lld-link: error: undefined symbol: public: static struct std::atomic<bool> llvm::sampleprof::FunctionSamples::HasUniqSuffix
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(public: static class llvm::StringRef __cdecl llvm::sampleprof::FunctionSamples::getCanonicalFnName(class llvm::StringRef, class llvm::ArrayRef<class llvm::StringRef>, class llvm::StringRef))
>>> referenced by LLVMAsmPrinter.lib(PseudoProbePrinter.cpp.obj)
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj)

lld-link: error: undefined symbol: public: class llvm::sampleprof::FunctionSamples const * __cdecl llvm::sampleprof::FunctionSamples::findFunctionSamples(class llvm::DILocation const *, class llvm::sampleprof::SampleProfileReaderItaniumRemapper *, class llvm::sampleprof::HashKeyMap<class llvm::DenseMap, class llvm::sampleprof::FunctionId, class llvm::sampleprof::FunctionId> const *) const
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(protected: virtual class llvm::sampleprof::FunctionSamples const * __cdecl llvm::SampleProfileLoaderBaseImpl<class llvm::MachineFunction>::findFunctionSamples(class llvm::MachineInstr const &) const)
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(protected: virtual class llvm::sampleprof::FunctionSamples const * __cdecl `anonymous namespace'::SampleProfileLoader::findFunctionSamples(class sampleprof::Instruction const &) const)
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(protected: virtual class llvm::sampleprof::FunctionSamples const * __cdecl llvm::SampleProfileLoaderBaseImpl<class llvm::Function>::findFunctionSamples(class llvm::Instruction const &) const)

lld-link: error: undefined symbol: public: static unsigned int __cdecl llvm::sampleprof::FunctionSamples::getOffset(class llvm::DILocation const *)
>>> referenced by LLVMCodeGen.lib(MIRSampleProfile.cpp.obj):(protected: class llvm::ErrorOr<unsigned __int64> __cdecl llvm::SampleProfileLoaderBaseImpl<class llvm::MachineFunction>::getInstWeightImpl(class llvm::MachineInstr const &))
>>> referenced by LLVMipo.lib(SampleProfile.cpp.obj):(protected: class llvm::ErrorOr<unsigned __int64> __cdecl llvm::SampleProfileLoaderBaseImpl<class llvm::Function>::getInstWeightImpl(class llvm::Instruction const &))

lld-link: error: undefined symbol: public: class llvm::Expected<struct llvm::PGOCtxProfile> __cdecl llvm::PGOCtxProfileReader::loadProfiles(void)
>>> referenced by LLVMAnalysis.lib(CtxProfAnalysis.cpp.obj):(public: class llvm::PGOContextualProfile __cdecl llvm::CtxProfAnalysis::run(class llvm::Module &, class llvm::AnalysisManager<class llvm::Module> &))
>>> referenced by LLVMipo.lib(FunctionImport.cpp.obj):(private: void __cdecl WorkloadImportsManager::loadFromCtxProf(void))

lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to see all errors)
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-commits mailing list