diff options
author | Dan Gohman <gohman@apple.com> | 2007-10-08 15:12:17 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-10-08 15:12:17 +0000 |
commit | fadf40a655bdd8ff275bd3ebd83b3597f9daaba2 (patch) | |
tree | d78418e292be64ae10da27f249c55252761ed6d8 /llvm | |
parent | ea3c73629fb4c2bcb58d3c9f160592ff677abcf1 (diff) | |
download | bcm5719-llvm-fadf40a655bdd8ff275bd3ebd83b3597f9daaba2.tar.gz bcm5719-llvm-fadf40a655bdd8ff275bd3ebd83b3597f9daaba2.zip |
In -debug mode, dump SelectionDAGs both before and after the
optimization passes.
llvm-svn: 42749
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index ad4907dca01..5f321654d86 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -4624,10 +4624,13 @@ void SelectionDAGISel::BuildSelectionDAG(SelectionDAG &DAG, BasicBlock *LLVMBB, } void SelectionDAGISel::CodeGenAndEmitDAG(SelectionDAG &DAG) { + DOUT << "Lowered selection DAG:\n"; + DEBUG(DAG.dump()); + // Run the DAG combiner in pre-legalize mode. DAG.Combine(false, *AA); - DOUT << "Lowered selection DAG:\n"; + DOUT << "Optimized lowered selection DAG:\n"; DEBUG(DAG.dump()); // Second step, hack on the DAG until it only uses operations and types that @@ -4640,6 +4643,9 @@ void SelectionDAGISel::CodeGenAndEmitDAG(SelectionDAG &DAG) { // Run the DAG combiner in post-legalize mode. DAG.Combine(true, *AA); + DOUT << "Optimized legalized selection DAG:\n"; + DEBUG(DAG.dump()); + if (ViewISelDAGs) DAG.viewGraph(); // Third, instruction select all of the operations to machine code, adding the |