[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:33:00 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);
----------------
arsenm wrote:
Maybe adjust the todo to treat i1 as divergent
https://github.com/llvm/llvm-project/pull/67182
More information about the llvm-commits
mailing list