Add a machine code print in DEBUG() following instruction selection.
authorJim Grosbach <grosbach@apple.com>
Tue, 17 Dec 2013 02:01:10 +0000 (02:01 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 17 Dec 2013 02:01:10 +0000 (02:01 +0000)
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

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 506b7380515d499859b3a37b14d1d6387abad0a6..2697a0cc9cae328484f2049134838aabe34c66ef 100644 (file)
@@ -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;
 }