[llvm] c1d771d - GlobalISel: Simplify debug printing
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 07:16:05 PDT 2020
Author: Matt Arsenault
Date: 2020-06-08T10:15:53-04:00
New Revision: c1d771dc4b6a17b2b09deea5a59056fa28c2d1f1
URL: https://github.com/llvm/llvm-project/commit/c1d771dc4b6a17b2b09deea5a59056fa28c2d1f1
DIFF: https://github.com/llvm/llvm-project/commit/c1d771dc4b6a17b2b09deea5a59056fa28c2d1f1.diff
LOG: GlobalISel: Simplify debug printing
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
index 6d39b1fd854c..c38d08f41e68 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
@@ -100,7 +100,7 @@ LegalizerHelper::LegalizerHelper(MachineFunction &MF, const LegalizerInfo &LI,
}
LegalizerHelper::LegalizeResult
LegalizerHelper::legalizeInstrStep(MachineInstr &MI) {
- LLVM_DEBUG(dbgs() << "Legalizing: "; MI.print(dbgs()));
+ LLVM_DEBUG(dbgs() << "Legalizing: " << MI);
if (MI.getOpcode() == TargetOpcode::G_INTRINSIC ||
MI.getOpcode() == TargetOpcode::G_INTRINSIC_W_SIDE_EFFECTS)
More information about the llvm-commits
mailing list