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

Jun Wang via llvm-commits llvm-commits at lists.llvm.org
Mon May 27 20:50:05 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();
+
----------------
jwanggit86 wrote:

Pls clarify. Are you saying the entire function `isCopyFromRegForI1Return()` is not needed? Also, you said "if UniformityAnalysis was correct". So it is not correct and needs fix?

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


More information about the llvm-commits mailing list