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 06f0039 commit a380b34Copy full SHA for a380b34
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -5616,11 +5616,9 @@ InstructionCost LoopVectorizationCostModel::expectedCost(ElementCount VF) {
5616
// away.
5617
SmallPtrSet<Instruction *, 2> ValuesToIgnoreForVF;
5618
auto TC = PSE.getSE()->getSmallConstantTripCount(TheLoop);
5619
- if (VF.isFixed() && TC == VF.getFixedValue()) {
5620
- assert(!foldTailByMasking());
+ if (VF.isFixed() && TC == VF.getFixedValue() && !foldTailByMasking())
5621
addFullyUnrolledInstructionsToIgnore(TheLoop, Legal->getInductionVars(),
5622
ValuesToIgnoreForVF);
5623
- }
5624
5625
// For each block.
5626
for (BasicBlock *BB : TheLoop->blocks()) {
0 commit comments