From c2bd628550be8bce92783e1753d540618d4806ad Mon Sep 17 00:00:00 2001 From: David Green Date: Tue, 27 Jul 2021 10:11:51 +0100 Subject: [PATCH] [NFC] Reflow some debug messages. --- lib/CodeGen/DetectDeadLanes.cpp | 20 +++++++++++--------- lib/CodeGen/HardwareLoops.cpp | 10 +++++----- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/lib/CodeGen/DetectDeadLanes.cpp b/lib/CodeGen/DetectDeadLanes.cpp index 03fe5f15529..1337e57f360 100644 --- a/lib/CodeGen/DetectDeadLanes.cpp +++ b/lib/CodeGen/DetectDeadLanes.cpp @@ -516,15 +516,17 @@ bool DetectDeadLanes::runOnce(MachineFunction &MF) { transferDefinedLanesStep(MO, Info.DefinedLanes); } - LLVM_DEBUG(dbgs() << "Defined/Used lanes:\n"; for (unsigned RegIdx = 0; - RegIdx < NumVirtRegs; - ++RegIdx) { - unsigned Reg = Register::index2VirtReg(RegIdx); - const VRegInfo &Info = VRegInfos[RegIdx]; - dbgs() << printReg(Reg, nullptr) - << " Used: " << PrintLaneMask(Info.UsedLanes) - << " Def: " << PrintLaneMask(Info.DefinedLanes) << '\n'; - } dbgs() << "\n";); + LLVM_DEBUG({ + dbgs() << "Defined/Used lanes:\n"; + for (unsigned RegIdx = 0; RegIdx < NumVirtRegs; ++RegIdx) { + unsigned Reg = Register::index2VirtReg(RegIdx); + const VRegInfo &Info = VRegInfos[RegIdx]; + dbgs() << printReg(Reg, nullptr) + << " Used: " << PrintLaneMask(Info.UsedLanes) + << " Def: " << PrintLaneMask(Info.DefinedLanes) << '\n'; + } + dbgs() << "\n"; + }); bool Again = false; // Mark operands as dead/unused. diff --git a/lib/CodeGen/HardwareLoops.cpp b/lib/CodeGen/HardwareLoops.cpp index 8cb04a13fd6..4316034371a 100644 --- a/lib/CodeGen/HardwareLoops.cpp +++ b/lib/CodeGen/HardwareLoops.cpp @@ -406,8 +406,8 @@ Value *HardwareLoop::InitLoopCount() { } if (!isSafeToExpandAt(TripCount, BB->getTerminator(), SE)) { - LLVM_DEBUG(dbgs() << "- Bailing, unsafe to expand TripCount " - << *TripCount << "\n"); + LLVM_DEBUG(dbgs() << "- Bailing, unsafe to expand TripCount " << *TripCount + << "\n"); return nullptr; } @@ -424,9 +424,9 @@ Value *HardwareLoop::InitLoopCount() { UseLoopGuard = UseLoopGuard && CanGenerateTest(L, Count); BeginBB = UseLoopGuard ? BB : L->getLoopPreheader(); LLVM_DEBUG(dbgs() << " - Loop Count: " << *Count << "\n" - << " - Expanded Count in " << BB->getName() << "\n" - << " - Will insert set counter intrinsic into: " - << BeginBB->getName() << "\n"); + << " - Expanded Count in " << BB->getName() << "\n" + << " - Will insert set counter intrinsic into: " + << BeginBB->getName() << "\n"); return Count; }