From: Jim Grosbach Date: Tue, 17 Dec 2013 02:01:10 +0000 (+0000) Subject: Add a machine code print in DEBUG() following instruction selection. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=26b52a78dc2403feea2def3c41bd7f23769fc8db;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 506b7380515..2697a0cc9ca 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; }