[OPMIRBuilder] Fix typo in condition

Fix a condition I accidentally inverted in
296671f059.
This commit is contained in:
Nikita Popov 2023-09-27 12:22:24 +02:00
parent 3d7df0a547
commit 18be23f82a

View File

@ -3523,7 +3523,7 @@ static int32_t computeHeuristicUnrollFactor(CanonicalLoopInfo *CLI) {
UnrollCostEstimator UCE(L, TTI, EphValues, UP.BEInsns);
// Loop is not unrollable if the loop contains certain instructions.
if (UCE.canUnroll() || UCE.Convergent) {
if (!UCE.canUnroll() || UCE.Convergent) {
LLVM_DEBUG(dbgs() << "Loop not considered unrollable\n");
return 1;
}