[llvm] [AMDGPU] Add inreg support for SGPR arguments (PR #67182)
Jun Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 2 15:12:25 PDT 2023
================
@@ -2543,8 +2543,7 @@ bool isArgPassedInSGPR(const Argument *A) {
return A->hasAttribute(Attribute::InReg) ||
A->hasAttribute(Attribute::ByVal);
default:
- // TODO: Should calls support inreg for SGPR inputs?
- return false;
+ return A->hasAttribute(Attribute::InReg);
----------------
jwanggit86 wrote:
Done.
https://github.com/llvm/llvm-project/pull/67182
More information about the llvm-commits
mailing list