[llvm] [ArgPromotion] Handle pointer arguments of recursive calls (PR #78735)

Vedant Paranjape via llvm-commits llvm-commits at lists.llvm.org
Fri May 31 06:45:19 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);
----------------
vedantparanjape-amd wrote:

U is the Use, and not the User, so it's not redundant with the isa in the if condition. Am I missing something ?

https://github.com/llvm/llvm-project/pull/78735


More information about the llvm-commits mailing list