[llvm] [AMDGPU] Remove duplicated/confusing helpers. NFCI (PR #142598)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 3 07:44:18 PDT 2025
================
@@ -978,7 +978,9 @@ bool AMDGPUTargetMachine::isNoopAddrSpaceCast(unsigned SrcAS,
unsigned AMDGPUTargetMachine::getAssumedAddrSpace(const Value *V) const {
if (auto *Arg = dyn_cast<Argument>(V);
- Arg && AMDGPU::isKernelCC(Arg->getParent()) && !Arg->hasByRefAttr())
+ Arg &&
+ AMDGPU::isModuleEntryFunctionCC(Arg->getParent()->getCallingConv()) &&
+ !Arg->hasByRefAttr())
----------------
arsenm wrote:
This is a functionality change which ideally would be tested
https://github.com/llvm/llvm-project/pull/142598
More information about the llvm-commits
mailing list