[llvm] [AMDGPU] Add inreg support for SGPR arguments (PR #67182)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 19:32:59 PDT 2023
================
@@ -2570,8 +2569,7 @@ bool isArgPassedInSGPR(const CallBase *CB, unsigned ArgNo) {
return CB->paramHasAttr(ArgNo, Attribute::InReg) ||
CB->paramHasAttr(ArgNo, Attribute::ByVal);
default:
- // TODO: Should calls support inreg for SGPR inputs?
- return false;
+ return CB->paramHasAttr(ArgNo, Attribute::InReg);
----------------
arsenm wrote:
Don't think the outgoing argument case is tested here
https://github.com/llvm/llvm-project/pull/67182
More information about the llvm-commits
mailing list