[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


================
@@ -700,6 +755,10 @@ static bool areTypesABICompatible(ArrayRef<Type *> Types, const Function &F,
 /// calls the DoPromotion method.
 static Function *promoteArguments(Function *F, FunctionAnalysisManager &FAM,
                                   unsigned MaxElements, bool IsRecursive) {
+  // Due to complexity of handling cases where the SCC has more than one
+  // component. We want to limit argument promotion of recursive calls to
+  // just functions that directly call themselves.
+  bool IsSelfRecursive = false;
----------------
nikic wrote:

This dead variable still hasn't been dropped...

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


More information about the llvm-commits mailing list