================
@@ -983,7 +989,12 @@ static bool addCallTargetOperands(MachineInstrBuilder 
&CallInst,
     auto Ptr = MIRBuilder.buildGlobalValue(
       LLT::pointer(GV->getAddressSpace(), 64), GV);
     CallInst.addReg(Ptr.getReg(0));
-    CallInst.add(Info.Callee);
+
+    if (IsDynamicVGPRChainCall)
+      // DynamicVGPR chain calls are always indirect.
+      CallInst.addImm(0);
+    else
----------------
arsenm wrote:

```suggestion
    if (IsDynamicVGPRChainCall) {
      // DynamicVGPR chain calls are always indirect.
      CallInst.addImm(0);
    } else
```

https://github.com/llvm/llvm-project/pull/130094
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to