Skip to content

Commit 6e4fd8f

Browse files
committed
Add assertion message
1 parent eaf1947 commit 6e4fd8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ InstructionCost VPInstruction::computeCost(ElementCount VF,
744744
Instruction::Or, cast<VectorType>(VecTy), std::nullopt, Ctx.CostKind);
745745
}
746746
case VPInstruction::FirstOrderRecurrenceSplice: {
747-
assert(VF.isVector());
747+
assert(VF.isVector() && "Scalar FirstOrderRecurrenceSplice?");
748748
SmallVector<int> Mask(VF.getKnownMinValue());
749749
std::iota(Mask.begin(), Mask.end(), VF.getKnownMinValue() - 1);
750750
Type *VectorTy =

0 commit comments

Comments
 (0)