[llvm] [LoopPeel] Peel to make Phis loop inductions (PR #121104)

Madhur Amilkanthwar via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 23:46:12 PST 2025


================
@@ -175,13 +202,17 @@ class PhiAnalyzer {
 
   // Calculate the number of iterations after which the given value
   // becomes an invariant.
-  PeelCounter calculate(const Value &);
+  PeelCounter calculate(Value &, ScalarEvolution &SE);
+
+  // Returns true if the \p Phi is an induction in the target loop. This
+  // funciton is a wrapper of `InductionDescriptor::isInductionPHI`.
----------------
madhur13490 wrote:

Typo fuciton -> function.

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


More information about the llvm-commits mailing list