Skip to content

Commit 7bd5e39

Browse files
committed
tmp
1 parent 6955f28 commit 7bd5e39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5583,9 +5583,11 @@ 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() && !foldTailByMasking())
5586+
if (VF.isFixed() && TC == VF.getFixedValue()) {
5587+
assert(!foldTailByMasking());
55875588
addFullyUnrolledInstructionsToIgnore(TheLoop, Legal->getInductionVars(),
55885589
ValuesToIgnoreForVF);
5590+
}
55895591

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

0 commit comments

Comments
 (0)