[llvm] [ArgPromotion] Handle pointer arguments of recursive calls (PR #78735)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 06:13:05 PDT 2024
================
@@ -610,13 +610,59 @@ static bool findArgParts(Argument *Arg, const DataLayout &DL, AAResults &AAR,
// unknown users
}
+ if (IsSelfRecursive && isa<CallBase>(V)) {
+ Value *Ptr = dyn_cast<Value>(U);
----------------
arsenm wrote:
unchecked dyn_cast, which is also redundant with the isa. Just dyn_cast to CallBase in the first place? You also need to check this is actually the callee argument
https://github.com/llvm/llvm-project/pull/78735
More information about the llvm-commits
mailing list