diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-24 00:34:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-24 00:34:29 +0000 |
commit | 82cfa5d616ff0f760425cbf6e2983fbab618fbda (patch) | |
tree | 3bb3a005fb4ab71f8547fb3178f397515a225d16 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 0750a40a4ff494a2dec24f5761149b8b00e642c5 (diff) |
Make -view-isel-dags show the dag before instruction selecting, in case
the target isel crashes due to unimplemented features like calls :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d3221c2e75..227d34e1c4 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1228,12 +1228,12 @@ void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB, MachineFunction &MF, DEBUG(std::cerr << "Legalized selection DAG:\n"); DEBUG(DAG.dump()); + if (ViewDAGs) DAG.viewGraph(); + // Third, instruction select all of the operations to machine code, adding the // code to the MachineBasicBlock. InstructionSelectBasicBlock(DAG); - if (ViewDAGs) DAG.viewGraph(); - DEBUG(std::cerr << "Selected machine code:\n"); DEBUG(BB->dump()); |