[llvm] [AMDGPU] Fix undivergent parameter pass using vgpr (PR #178198)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 28 04:46:39 PST 2026
================
@@ -134,6 +134,9 @@ void TargetLoweringBase::ArgListEntry::setAttributes(const CallBase *Call,
IsSwiftError = Call->paramHasAttr(ArgIdx, Attribute::SwiftError);
Alignment = Call->getParamStackAlign(ArgIdx);
IndirectType = nullptr;
+ Value *Op = Call->getArgOperand(ArgIdx);
+ if (const Argument *Arg = dyn_cast<Argument>(Op))
+ IsArgInReg = Arg->hasInRegAttr();
----------------
arsenm wrote:
You should not be looking at the context of the source value. The call should strictly consider the call attributes only
https://github.com/llvm/llvm-project/pull/178198
More information about the llvm-commits
mailing list