[llvm] [AMDGPU] Allocate i1 argument to SGPRs (PR #72461)
Jun Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 14:59:39 PDT 2024
================
@@ -3225,6 +3230,21 @@ SDValue SITargetLowering::LowerCallResult(
Val = DAG.getCopyFromReg(Chain, DL, VA.getLocReg(), VA.getLocVT(), InGlue);
Chain = Val.getValue(1);
InGlue = Val.getValue(2);
+
+ // For i1 return value allocated to an SGPR, we want the dst reg for the
+ // above CopyFromReg not to be of VReg_1 when emitting machine code.
+ // This requires creating an addional CopyToReg followed by another
+ // CopyFromReg.
----------------
jwanggit86 wrote:
Done.
https://github.com/llvm/llvm-project/pull/72461
More information about the llvm-commits
mailing list