Skip to content

Commit f5d5ed6

Browse files
committed
Put if statement inside DEBUG
1 parent 82151a8 commit f5d5ed6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5035,10 +5035,11 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
50355035
else if (auto *PartialReductionR =
50365036
dyn_cast<VPPartialReductionRecipe>(R))
50375037
VF = VF.divideCoefficientBy(PartialReductionR->getVFScaleFactor());
5038-
if (VF != VFs[J])
5039-
LLVM_DEBUG(dbgs() << "LV(REG): Scaled down VF from " << VFs[J]
5040-
<< " to " << VF << " for ";
5041-
R->dump(););
5038+
LLVM_DEBUG(if (VF != VFs[J]) {
5039+
dbgs() << "LV(REG): Scaled down VF from " << VFs[J] << " to " << VF
5040+
<< " for ";
5041+
R->dump();
5042+
});
50425043

50435044
for (VPValue *DefV : R->definedValues()) {
50445045
Type *ScalarTy = TypeInfo.inferScalarType(DefV);

0 commit comments

Comments
 (0)