[llvm] c66286e - [LV] Use specific first-order recurrence recipe as arg type (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 28 01:58:40 PST 2021
Author: Florian Hahn
Date: 2021-12-28T10:58:21+01:00
New Revision: c66286ed5924a6b1535f0eb9af4d19f8cf676be0
URL: https://github.com/llvm/llvm-project/commit/c66286ed5924a6b1535f0eb9af4d19f8cf676be0
DIFF: https://github.com/llvm/llvm-project/commit/c66286ed5924a6b1535f0eb9af4d19f8cf676be0.diff
LOG: [LV] Use specific first-order recurrence recipe as arg type (NFC).
Required for further refactoring in D116304.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index e713925e3b80a..261f9317f2602 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -582,7 +582,8 @@ class InnerLoopVectorizer {
/// 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.
More information about the llvm-commits
mailing list