Skip to content

Commit b650778

Browse files
committed
[NFC] Wrap entire assert-only block in LLVM_DEBUG
1 parent 596989d commit b650778

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,12 @@ void SIOptimizeVGPRLiveRange::collectElseRegionBlocks(
161161
MBB = nullptr;
162162
}
163163

164-
LLVM_DEBUG(dbgs() << "Found Else blocks: ");
165-
for (auto *MBB : Blocks)
166-
LLVM_DEBUG(dbgs() << printMBBReference(*MBB) << ' ');
167-
LLVM_DEBUG(dbgs() << '\n');
164+
LLVM_DEBUG({
165+
dbgs() << "Found Else blocks: ";
166+
for (auto *MBB : Blocks)
167+
dbgs() << printMBBReference(*MBB) << ' ';
168+
dbgs() << '\n';
169+
});
168170
}
169171

170172
/// Find the instructions(excluding phi) in \p MBB that uses the \p Reg.

0 commit comments

Comments
 (0)