[llvm] [RS4GC] Copy argument attributes from call to statepoint (PR #68475)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 12 12:49:03 PDT 2023


================
@@ -1423,7 +1423,7 @@ static constexpr Attribute::AttrKind FnAttrsToStrip[] =
 
 // Create new attribute set containing only attributes which can be transferred
 // from original call to the safepoint.
-static AttributeList legalizeCallAttributes(LLVMContext &Ctx,
+static AttributeList legalizeCallAttributes(LLVMContext &Ctx, unsigned NumArgs,
                                             AttributeList OrigAL,
                                             AttributeList StatepointAL) {
----------------
dantrushin wrote:

Looks like it can be easier/cleaner to just pass CallInst here? (maybe together with IsMemIntrinsic flag and build OrigAl inside this function)

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


More information about the llvm-commits mailing list