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
This commit is contained in:
Jim Grosbach 2013-12-17 02:01:10 +00:00
parent 2dea15b53c
commit ea2db453dd
1 changed files with 3 additions and 0 deletions

View File

@ -566,6 +566,9 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
// at this point. // at this point.
FuncInfo->clear(); FuncInfo->clear();
DEBUG(dbgs() << "*** MachineFunction at end of ISel ***\n");
DEBUG(MF->print(dbgs()));
return true; return true;
} }