We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ac8d8d commit adf43d2Copy full SHA for adf43d2
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -9254,6 +9254,9 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
9254
!RecurrenceDescriptor::isAnyOfRecurrenceKind(
9255
RdxDesc.getRecurrenceKind())) {
9256
assert(!PhiR->isInLoop() && "Unexpected truncated inloop reduction!");
9257
+ assert(!RecurrenceDescriptor::isMinMaxRecurrenceKind(
9258
+ RdxDesc.getRecurrenceKind()) &&
9259
+ "Unexpected truncated min-max recurrence!");
9260
Type *RdxTy = RdxDesc.getRecurrenceType();
9261
auto *Trunc =
9262
new VPWidenCastRecipe(Instruction::Trunc, NewExitingVPV, RdxTy);
0 commit comments