Skip to content

Commit

Permalink
Remove randomly introduced change
Browse files Browse the repository at this point in the history
  • Loading branch information
igogo-x86 committed Dec 5, 2024
1 parent 940f228 commit 86b9f1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5583,11 +5583,9 @@ InstructionCost LoopVectorizationCostModel::expectedCost(ElementCount VF) {
// away.
SmallPtrSet<Instruction *, 2> ValuesToIgnoreForVF;
auto TC = PSE.getSE()->getSmallConstantTripCount(TheLoop);
if (VF.isFixed() && TC == VF.getFixedValue()) {
assert(!foldTailByMasking());
if (VF.isFixed() && TC == VF.getFixedValue() && !foldTailByMasking())
addFullyUnrolledInstructionsToIgnore(TheLoop, Legal->getInductionVars(),
ValuesToIgnoreForVF);
}

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

0 comments on commit 86b9f1e

Please sign in to comment.