[llvm] [RewriteStatepointsForGC] Set C calling convention on intrinsic call (PR #197382)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 00:53:53 PDT 2026


================
@@ -1550,12 +1550,8 @@ static void CreateGCRelocates(ArrayRef<Value *> LiveVariables,
     Function *GCRelocateDecl = It->second;
 
     // only specify a debug name if we can give a useful one
-    CallInst *Reloc = Builder.CreateCall(
-        GCRelocateDecl, {StatepointToken, BaseIdx, LiveIdx},
-        suffixed_name_or(LiveVariables[i], ".relocated", ""));
-    // Trick CodeGen into thinking there are lots of free registers at this
-    // fake call.
----------------
arsenm wrote:

Right, does that mean none of the codegen tests use coldcc on these calls? 

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


More information about the llvm-commits mailing list