[llvm] [ArgPromotion] Handle pointer arguments of recursive calls (PR #78735)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 09:13:52 PDT 2024
================
@@ -610,13 +610,78 @@ static bool findArgParts(Argument *Arg, const DataLayout &DL, AAResults &AAR,
// unknown users
}
+ auto *CB = dyn_cast<CallBase>(V);
+ Value *PtrArg = dyn_cast<Value>(U);
----------------
arsenm wrote:
Why do you need to dyn_cast to Value?
https://github.com/llvm/llvm-project/pull/78735
More information about the llvm-commits
mailing list