Skip to content

Commit 18ba737

Browse files
committed
tmp
1 parent 3c30bf1 commit 18ba737

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
@@ -5616,9 +5616,11 @@ 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() && !foldTailByMasking())
5619+
if (VF.isFixed() && TC == VF.getFixedValue()) {
5620+
assert(!foldTailByMasking());
56205621
addFullyUnrolledInstructionsToIgnore(TheLoop, Legal->getInductionVars(),
56215622
ValuesToIgnoreForVF);
5623+
}
56225624

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

0 commit comments

Comments
 (0)