[llvm-branch-commits] [llvm] [AMDGPU] Make `AllocaInst` return AS5 in `getAssumedAddrSpace` (PR #136798)
Shilei Tian via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 23 06:47:44 PDT 2025
================
@@ -951,6 +951,9 @@ bool AMDGPUTargetMachine::isNoopAddrSpaceCast(unsigned SrcAS,
}
unsigned AMDGPUTargetMachine::getAssumedAddrSpace(const Value *V) const {
+ if (isa<AllocaInst>(V))
----------------
shiltian wrote:
I don't think we need to differentiate them. It is either flat or private. It can't be something else, especially after https://github.com/llvm/llvm-project/pull/135820.
https://github.com/llvm/llvm-project/pull/136798
More information about the llvm-branch-commits
mailing list