[llvm] [ArgPromotion] Handle pointer arguments of recursive calls (PR #78735)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 13 13:58:07 PDT 2024
================
@@ -420,11 +420,31 @@ doPromotion(Function *F, FunctionAnalysisManager &FAM,
return NF;
}
+/// Returns true if the Ptr is loaded by any Load in the vector of
+/// Loads, and if the Loaded value is not a pointer.
+static bool checkIfPointerIsDereferenced(SmallVector<LoadInst *, 16> &Loads,
----------------
efriedma-quic wrote:
With the most recent changes, please check again if checkIfPointerIsDereferenced(); I suspect the other checks make this unnecessary.
https://github.com/llvm/llvm-project/pull/78735
More information about the llvm-commits
mailing list