[llvm] [AMDGPU] Allocate i1 argument to SGPRs (PR #72461)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 06:51:38 PDT 2024


================
@@ -15887,7 +15889,14 @@ static bool isCopyFromRegForI1Return(const SDNode *N) {
   SDNode *N2 = N1->getOperand(0).getNode();
   if (N2->getOpcode() != ISD::CopyFromReg)
     return false;
-  SDNode *N3 = N2->getOperand(0).getNode();
+
----------------
arsenm wrote:

Instead of this, you need to adjust isArgPassedInSGPR to account for the i1 case 

https://github.com/llvm/llvm-project/pull/72461


More information about the llvm-commits mailing list