[llvm] [ArgPromotion] Handle pointer arguments of recursive calls (PR #78735)
Vedant Paranjape via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 12 12:21:20 PDT 2024
================
@@ -437,6 +440,13 @@ static bool allCallersPassValidPointerForArgument(Argument *Arg,
// direct callees.
return all_of(Callee->users(), [&](User *U) {
CallBase &CB = cast<CallBase>(*U);
+ if (RecursiveCalls.contains(&CB))
+ return true;
+
+ // if (RecursiveCalls.size() &&
+ // CB.getCalledFunction()->getName() == Callee->getName())
+ // return true;
----------------
vedantparanjape-amd wrote:
Yes, I will remove it. Was referring to it, in my thread with efriedma!
https://github.com/llvm/llvm-project/pull/78735
More information about the llvm-commits
mailing list