[llvm] [AMDGPU] Insert readfirstlane for uniform VGPR arguments (PR #178198)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 7 06:34:19 PST 2026
================
@@ -3627,6 +3627,14 @@ SDValue SITargetLowering::LowerFormalArguments(
Reg = MF.addLiveIn(Reg, RC);
SDValue Val = DAG.getCopyFromReg(Chain, DL, Reg, VT);
+ if (Arg.Flags.isInReg() && RC == &AMDGPU::VGPR_32RegClass) {
+ // FIXME: Need to forward the chains created by `CopyFromReg`s, make sure
----------------
shiltian wrote:
Is this FIXME still relavant?
https://github.com/llvm/llvm-project/pull/178198
More information about the llvm-commits
mailing list