We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8024cd9 commit b8c866fCopy full SHA for b8c866f
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -5583,9 +5583,11 @@ InstructionCost LoopVectorizationCostModel::expectedCost(ElementCount VF) {
5583
// away.
5584
SmallPtrSet<Instruction *, 2> ValuesToIgnoreForVF;
5585
auto TC = PSE.getSE()->getSmallConstantTripCount(TheLoop);
5586
- if (VF.isFixed() && TC == VF.getFixedValue() && !foldTailByMasking())
+ if (VF.isFixed() && TC == VF.getFixedValue()) {
5587
+ assert(!foldTailByMasking());
5588
addFullyUnrolledInstructionsToIgnore(TheLoop, Legal->getInductionVars(),
5589
ValuesToIgnoreForVF);
5590
+ }
5591
5592
// For each block.
5593
for (BasicBlock *BB : TheLoop->blocks()) {
0 commit comments