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

Ryotaro Kasuga via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 03:12:11 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`.
----------------
kasuga-fj wrote:

Fixed, thanks.

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


More information about the llvm-commits mailing list