[llvm] [clang] [clang-tools-extra] [AMDGPU] Add IR-level pass to rewrite away address space 7 (PR #77952)

Piotr Sobczak via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 02:34:13 PST 2024


piotrAMD wrote:

Came across an assertion, see the attachment for the reproducer [repro.txt](https://github.com/llvm/llvm-project/files/14138750/repro.txt):
opt -S -mcpu=gfx1100 -amdgpu-lower-buffer-fat-pointers  repro.txt

#10 0x0000000003aed749 llvm::StructLayout::StructLayout(llvm::StructType*, llvm::DataLayout const&) (/work/sw/drivers/xgl/rel/compiler/llpc/llvm/bin/opt+0x3aed749)
#11 0x0000000003af069d llvm::DataLayout::getStructLayout(llvm::StructType*) const (/work/sw/drivers/xgl/rel/compiler/llpc/llvm/bin/opt+0x3af069d)
#12 0x0000000003c03494 llvm::GEPOperator::collectOffset(llvm::DataLayout const&, unsigned int, llvm::MapVector<llvm::Value*, llvm::APInt, llvm::DenseMap<llvm::Value*, unsigned int, llvm::DenseMapInfo<llvm::Value*, void>, llvm::detail::DenseMapPair<llvm::Value*, unsigned int>>, llvm::SmallVector<std::pair<llvm::Value*, llvm::APInt>, 0u>>&, llvm::APInt&) const (/work/sw/drivers/xgl/rel/compiler/llpc/llvm/bin/opt+0x3c03494)
#13 0x0000000002d999d0 (anonymous namespace)::SplitPtrStructs::visitGetElementPtrInst(llvm::GetElementPtrInst&) AMDGPULowerBufferFatPointers.cpp:0:0
#14 0x0000000002d97ba6 llvm::InstVisitor<(anonymous namespace)::SplitPtrStructs, std::pair<llvm::Value*, llvm::Value*>>::visit(llvm::Instruction&) AMDGPULowerBufferFatPointers.cpp:0:0
#15 0x0000000002d8f4b3 (anonymous namespace)::AMDGPULowerBufferFatPointers::run(llvm::Module&, llvm::TargetMachine const&) AMDGPULowerBufferFatPointers.cpp:0:0




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


More information about the llvm-commits mailing list