diff options
author | Jim Grosbach <grosbach@apple.com> | 2013-12-17 02:01:10 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2013-12-17 02:01:10 +0000 |
commit | 26b52a78dc2403feea2def3c41bd7f23769fc8db (patch) | |
tree | f017009c706f60e9bfb17526332b4e0afd880cb7 /lib | |
parent | e0c25bd05d3965b31daf6ad27a02fa79991045c8 (diff) | |
download | llvm-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.cpp | 3 |
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; } |