[llvm] [AMDGPU] Handle lowering addrspace casts from LDS to FLAT address in amdgpu-sw-lower-lds. (PR #121214)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 23:23:00 PST 2025
================
@@ -655,6 +655,10 @@ void AMDGPUSwLowerLDS::getLDSMemoryInstructions(
} else if (AtomicCmpXchgInst *XCHG = dyn_cast<AtomicCmpXchgInst>(&Inst)) {
if (XCHG->getPointerAddressSpace() == AMDGPUAS::LOCAL_ADDRESS)
LDSInstructions.insert(&Inst);
+ } else if (AddrSpaceCastInst *AscI = dyn_cast<AddrSpaceCastInst>(&Inst)) {
----------------
arsenm wrote:
This approach doesn't feel very sound and is looking for very specific patterns instead of what is structurally possible.
https://github.com/llvm/llvm-project/pull/121214
More information about the llvm-commits
mailing list