[llvm-branch-commits] [llvm] [AMDGPU] Dynamic VGPR support for llvm.amdgcn.cs.chain (PR #130094)
Diana Picus via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Mar 11 03:29:19 PDT 2025
================
@@ -116,14 +117,56 @@ static void splitBlock(MachineBasicBlock &MBB, MachineInstr &MI,
MDT->applyUpdates(DTUpdates);
}
-void SILateBranchLowering::expandChainCall(MachineInstr &MI) {
+static void addRegOrCopyOp(MachineInstrBuilder &MIB, MachineOperand &Op) {
+ if (Op.isReg())
+ MIB.addReg(Op.getReg());
+ else
+ MIB->addOperand(Op);
----------------
rovka wrote:
Comment added. Hope it's clearer now.
https://github.com/llvm/llvm-project/pull/130094
More information about the llvm-branch-commits
mailing list