Skip to content

Commit 86b9f1e

Browse files
committed
Remove randomly introduced change
1 parent 940f228 commit 86b9f1e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5583,11 +5583,9 @@ InstructionCost LoopVectorizationCostModel::expectedCost(ElementCount VF) {
55835583
// away.
55845584
SmallPtrSet<Instruction *, 2> ValuesToIgnoreForVF;
55855585
auto TC = PSE.getSE()->getSmallConstantTripCount(TheLoop);
5586-
if (VF.isFixed() && TC == VF.getFixedValue()) {
5587-
assert(!foldTailByMasking());
5586+
if (VF.isFixed() && TC == VF.getFixedValue() && !foldTailByMasking())
55885587
addFullyUnrolledInstructionsToIgnore(TheLoop, Legal->getInductionVars(),
55895588
ValuesToIgnoreForVF);
5590-
}
55915589

55925590
// For each block.
55935591
for (BasicBlock *BB : TheLoop->blocks()) {

0 commit comments

Comments
 (0)