[llvm] [ArgPromotion] Handle pointer arguments of recursive calls (PR #78735)
Vedant Paranjape via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 09:28:02 PDT 2024
================
@@ -611,6 +639,33 @@ static bool findArgParts(Argument *Arg, const DataLayout &DL, AAResults &AAR,
// unknown users
}
+ auto *CB = dyn_cast<CallBase>(V);
+ Value *PtrArg = cast<Value>(U);
+ if (CB && PtrArg && CB->getCalledFunction() == CB->getFunction()) {
----------------
vedantparanjape-amd wrote:
created a new PR to address these changes, please take a look (https://github.com/llvm/llvm-project/pull/98657)
https://github.com/llvm/llvm-project/pull/78735
More information about the llvm-commits
mailing list