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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 04:51:25 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:

This whole function shouldn't be necessary. You can't necessarily identify it's from a return context, but you shouldn't need to reverse engineer this 

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


More information about the llvm-commits mailing list