Skip to content

Commit adf43d2

Browse files
committed
!fixup add assert, thanks
1 parent 0ac8d8d commit adf43d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9254,6 +9254,9 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
92549254
!RecurrenceDescriptor::isAnyOfRecurrenceKind(
92559255
RdxDesc.getRecurrenceKind())) {
92569256
assert(!PhiR->isInLoop() && "Unexpected truncated inloop reduction!");
9257+
assert(!RecurrenceDescriptor::isMinMaxRecurrenceKind(
9258+
RdxDesc.getRecurrenceKind()) &&
9259+
"Unexpected truncated min-max recurrence!");
92579260
Type *RdxTy = RdxDesc.getRecurrenceType();
92589261
auto *Trunc =
92599262
new VPWidenCastRecipe(Instruction::Trunc, NewExitingVPV, RdxTy);

0 commit comments

Comments
 (0)