Skip to content

Commit c56c43d

Browse files
committed
Address review comment
1 parent df8d20c commit c56c43d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4597,24 +4597,24 @@ static bool isLoopSizeWithinBudget(Loop *L, AArch64TTIImpl &TTI,
45974597
InstructionCost LoopCost = 0;
45984598

45994599
if (findStringMetadataForLoop(L, "llvm.loop.isvectorized"))
4600-
return 0;
4600+
return false;
46014601

46024602
for (auto *BB : L->getBlocks()) {
46034603
for (auto &I : *BB) {
46044604
if (!shouldUnrollLoopWithInstruction(I, TTI))
4605-
return 0;
4605+
return false;
46064606

46074607
SmallVector<const Value *, 4> Operands(I.operand_values());
46084608
InstructionCost Cost =
46094609
TTI.getInstructionCost(&I, Operands, TTI::TCK_CodeSize);
46104610
// This can happen with intrinsics that don't currently have a cost model
46114611
// or for some operations that require SVE.
46124612
if (!Cost.isValid())
4613-
return 0;
4613+
return false;
46144614

46154615
LoopCost += Cost;
46164616
if (LoopCost > Budget)
4617-
return 0;
4617+
return false;
46184618
}
46194619
}
46204620

0 commit comments

Comments
 (0)