Skip to content

Commit a380b34

Browse files
committed
Remove randomly introduced change
1 parent 06f0039 commit a380b34

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
@@ -5616,11 +5616,9 @@ InstructionCost LoopVectorizationCostModel::expectedCost(ElementCount VF) {
56165616
// away.
56175617
SmallPtrSet<Instruction *, 2> ValuesToIgnoreForVF;
56185618
auto TC = PSE.getSE()->getSmallConstantTripCount(TheLoop);
5619-
if (VF.isFixed() && TC == VF.getFixedValue()) {
5620-
assert(!foldTailByMasking());
5619+
if (VF.isFixed() && TC == VF.getFixedValue() && !foldTailByMasking())
56215620
addFullyUnrolledInstructionsToIgnore(TheLoop, Legal->getInductionVars(),
56225621
ValuesToIgnoreForVF);
5623-
}
56245622

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

0 commit comments

Comments
 (0)