-
Notifications
You must be signed in to change notification settings - Fork 14k
[GlobalISel] Split Legalizer debug ouput into paragraphs. NFC #143427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This helps make the legalizer output easier to read, splitting each instructions legalization into a separate block.
@llvm/pr-subscribers-llvm-globalisel Author: David Green (davemgreen) ChangesThis helps keep the legalizer output easier to read, splitting each instructions legalization into a separate block. Full diff: https://github.com/llvm/llvm-project/pull/143427.diff 1 Files Affected:
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);
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I happened just to be testing it to make sure it hadn't bitrotted. I'm not sure why it was merged in though, it is best to ask before doing that. |
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/builds/30807 Here is the relevant piece of the build log for the reference
|
OK, sorry, it's my fault. I'll pay more attention next time |
This helps keep the legalizer output easier to read, splitting each instructions legalization into a separate block.