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 940f228 commit 86b9f1eCopy full SHA for 86b9f1e
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -5583,11 +5583,9 @@ 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()) {
5587
- assert(!foldTailByMasking());
+ if (VF.isFixed() && TC == VF.getFixedValue() && !foldTailByMasking())
5588
addFullyUnrolledInstructionsToIgnore(TheLoop, Legal->getInductionVars(),
5589
ValuesToIgnoreForVF);
5590
- }
5591
5592
// For each block.
5593
for (BasicBlock *BB : TheLoop->blocks()) {
0 commit comments