Skip to content

Commit 4067d4d

Browse files
committed
Strengthen assertion in createSimpleReduction
1 parent 9241f0a commit 4067d4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Utils/LoopUtils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,8 @@ Value *llvm::createSimpleReduction(VectorBuilder &VBuilder, Value *Src,
13361336
const RecurrenceDescriptor &Desc) {
13371337
RecurKind Kind = Desc.getRecurrenceKind();
13381338
assert(!RecurrenceDescriptor::isAnyOfRecurrenceKind(Kind) &&
1339-
"AnyOf reduction is not supported.");
1339+
!RecurrenceDescriptor::isFindLastIVRecurrenceKind(Kind) &&
1340+
"AnyOf or FindLastIV reductions are not supported.");
13401341
Intrinsic::ID Id = getReductionIntrinsicID(Kind);
13411342
auto *SrcTy = cast<VectorType>(Src->getType());
13421343
Type *SrcEltTy = SrcTy->getElementType();

0 commit comments

Comments
 (0)