Skip to content

Commit c72adbe

Browse files
committed
Put if statement inside DEBUG
1 parent 9c8ac1d commit c72adbe

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
@@ -5027,10 +5027,11 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
50275027
else if (auto *PartialReductionR =
50285028
dyn_cast<VPPartialReductionRecipe>(R))
50295029
VF = VF.divideCoefficientBy(PartialReductionR->getVFScaleFactor());
5030-
if (VF != VFs[J])
5031-
LLVM_DEBUG(dbgs() << "LV(REG): Scaled down VF from " << VFs[J]
5032-
<< " to " << VF << " for ";
5033-
R->dump(););
5030+
LLVM_DEBUG(if (VF != VFs[J]) {
5031+
dbgs() << "LV(REG): Scaled down VF from " << VFs[J] << " to "
5032+
<< VF << " for ";
5033+
R->dump();
5034+
});
50345035

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

0 commit comments

Comments
 (0)