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 3c30bf1 commit 18ba737Copy full SHA for 18ba737
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -5616,9 +5616,11 @@ 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() && !foldTailByMasking())
+ if (VF.isFixed() && TC == VF.getFixedValue()) {
5620
+ assert(!foldTailByMasking());
5621
addFullyUnrolledInstructionsToIgnore(TheLoop, Legal->getInductionVars(),
5622
ValuesToIgnoreForVF);
5623
+ }
5624
5625
// For each block.
5626
for (BasicBlock *BB : TheLoop->blocks()) {
0 commit comments