[LV] Use specific first-order recurrence recipe as arg type (NFC).
authorFlorian Hahn <flo@fhahn.com>
Tue, 28 Dec 2021 09:53:56 +0000 (10:53 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 28 Dec 2021 09:58:21 +0000 (10:58 +0100)
Required for further refactoring in D116304.

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

index e713925..261f931 100644 (file)
@@ -582,7 +582,8 @@ protected:
 
   /// Create the exit value of first order recurrences in the middle block and
   /// update their users.
-  void fixFirstOrderRecurrence(VPWidenPHIRecipe *PhiR, VPTransformState &State);
+  void fixFirstOrderRecurrence(VPFirstOrderRecurrencePHIRecipe *PhiR,
+                               VPTransformState &State);
 
   /// Create code for the loop exit value of the reduction.
   void fixReduction(VPReductionPHIRecipe *Phi, VPTransformState &State);
@@ -4096,8 +4097,8 @@ void InnerLoopVectorizer::fixCrossIterationPHIs(VPTransformState &State) {
   }
 }
 
-void InnerLoopVectorizer::fixFirstOrderRecurrence(VPWidenPHIRecipe *PhiR,
-                                                  VPTransformState &State) {
+void InnerLoopVectorizer::fixFirstOrderRecurrence(
+    VPFirstOrderRecurrencePHIRecipe *PhiR, VPTransformState &State) {
   // This is the second phase of vectorizing first-order recurrences. An
   // overview of the transformation is described below. Suppose we have the
   // following loop.