================ @@ -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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits