[llvm] [ArgPromotion] Handle pointer arguments of recursive calls (PR #78735)
Vedant Paranjape via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 05:24:51 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:
What do you mean by function type, is it the thing returned by getFunctionType() ? I am not able to understand why it would be different ?
https://github.com/llvm/llvm-project/pull/78735
More information about the llvm-commits
mailing list