summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2013-12-17 02:01:10 +0000
committerJim Grosbach <grosbach@apple.com>2013-12-17 02:01:10 +0000
commit26b52a78dc2403feea2def3c41bd7f23769fc8db (patch)
treef017009c706f60e9bfb17526332b4e0afd880cb7 /lib
parente0c25bd05d3965b31daf6ad27a02fa79991045c8 (diff)
downloadllvm-26b52a78dc2403feea2def3c41bd7f23769fc8db.tar.gz
llvm-26b52a78dc2403feea2def3c41bd7f23769fc8db.tar.bz2
llvm-26b52a78dc2403feea2def3c41bd7f23769fc8db.tar.xz
Add a machine code print in DEBUG() following instruction selection.
Make debugging ISel a bit easier by printing out a dump of the generated code at the end. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 506b738051..2697a0cc9c 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -566,6 +566,9 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
// at this point.
FuncInfo->clear();
+ DEBUG(dbgs() << "*** MachineFunction at end of ISel ***\n");
+ DEBUG(MF->print(dbgs()));
+
return true;
}