Skip to content

Commit b11c763

Browse files
committed
Put if statement inside DEBUG
1 parent 505fcb4 commit b11c763

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
@@ -5034,10 +5034,11 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
50345034
else if (auto *PartialReductionR =
50355035
dyn_cast<VPPartialReductionRecipe>(R))
50365036
VF = VF.divideCoefficientBy(PartialReductionR->getVFScaleFactor());
5037-
if (VF != VFs[J])
5038-
LLVM_DEBUG(dbgs() << "LV(REG): Scaled down VF from " << VFs[J]
5039-
<< " to " << VF << " for ";
5040-
R->dump(););
5037+
LLVM_DEBUG(if (VF != VFs[J]) {
5038+
dbgs() << "LV(REG): Scaled down VF from " << VFs[J] << " to "
5039+
<< VF << " for ";
5040+
R->dump();
5041+
});
50415042

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

0 commit comments

Comments
 (0)