[llvm] [ArgPromotion] Handle pointer arguments of recursive calls (PR #78735)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 01:27:22 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);
----------------
nikic wrote:
Writing this as `cast<Value>(U)` works, but is pretty weird. `U.get()` would be better.
https://github.com/llvm/llvm-project/pull/78735
More information about the llvm-commits
mailing list