[llvm] [GlobalISel] Split Legalizer debug ouput into paragraphs. NFC (PR #143427)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 12:20:29 PDT 2025
https://github.com/davemgreen created https://github.com/llvm/llvm-project/pull/143427
This helps keep the legalizer output easier to read, splitting each instructions legalization into a separate block.
>From d22ec79a16d6999e2b2bbe88f006c20b29547625 Mon Sep 17 00:00:00 2001
From: David Green <david.green at arm.com>
Date: Mon, 9 Jun 2025 15:55:02 +0100
Subject: [PATCH] [GlobalISel] Split Legalizer debug ouput into paragraphs. NFC
This helps make the legalizer output easier to read, splitting each
instructions legalization into a separate block.
---
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
index 83ba71e4c9d49..028bffd1bf5a7 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
@@ -118,7 +118,7 @@ LegalizerHelper::LegalizerHelper(MachineFunction &MF, const LegalizerInfo &LI,
LegalizerHelper::LegalizeResult
LegalizerHelper::legalizeInstrStep(MachineInstr &MI,
LostDebugLocObserver &LocObserver) {
- LLVM_DEBUG(dbgs() << "Legalizing: " << MI);
+ LLVM_DEBUG(dbgs() << "\nLegalizing: " << MI);
MIRBuilder.setInstrAndDebugLoc(MI);
More information about the llvm-commits
mailing list