summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
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
commitea2db453dd1be029c6714aace3ed5b0e5d72b86b (patch)
tree4d1c152ffe3f6d2044daee0e6257e05932a0dfe8 /llvm/lib/CodeGen/SelectionDAG
parent2dea15b53c41fc859662c83849372e83607c2d15 (diff)
downloadbcm5719-llvm-ea2db453dd1be029c6714aace3ed5b0e5d72b86b.tar.gz
bcm5719-llvm-ea2db453dd1be029c6714aace3ed5b0e5d72b86b.zip
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. llvm-svn: 197456
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 506b7380515..2697a0cc9ca 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud