diff options
author | Dan Gohman <djg@cray.com> | 2007-10-08 15:12:17 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-10-08 15:12:17 +0000 |
commit | eebf44e7264e1caf85b96e166373e5be6994cad2 (patch) | |
tree | 8007818fb5e89c1d0ea5d70246040fdacce3fb03 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | c1cccfd78f2cd1a55a1570bfb37e7cf9d83ec9d3 (diff) | |
download | external_llvm-eebf44e7264e1caf85b96e166373e5be6994cad2.zip external_llvm-eebf44e7264e1caf85b96e166373e5be6994cad2.tar.gz external_llvm-eebf44e7264e1caf85b96e166373e5be6994cad2.tar.bz2 |
In -debug mode, dump SelectionDAGs both before and after the
optimization passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42749 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index ad4907d..5f32165 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/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 |