Skip to content

Commit 807579f

Browse files
committed
Move intermediate store into assertion section.
1 parent e6bbf55 commit 807579f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9144,7 +9144,6 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
91449144
continue;
91459145

91469146
const RecurrenceDescriptor &RdxDesc = PhiR->getRecurrenceDescriptor();
9147-
StoreInst *IntermediateStore = RdxDesc.IntermediateStore;
91489147
RecurKind Kind = RdxDesc.getRecurrenceKind();
91499148
assert(!RecurrenceDescriptor::isAnyOfRecurrenceKind(Kind) &&
91509149
"AnyOf reductions are not allowed for in-loop reductions");
@@ -9161,7 +9160,7 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
91619160
m_VPValue(), m_VPValue())) ||
91629161
(isa<VPReplicateRecipe>(U) &&
91639162
cast<VPReplicateRecipe>(U)->getUnderlyingValue() ==
9164-
IntermediateStore)) &&
9163+
RdxDesc.IntermediateStore)) &&
91659164
"U must be either an ExtractFromEnd VPInstruction or a "
91669165
"uniform store sourced from the intermediate store.");
91679166
continue;

0 commit comments

Comments
 (0)