From: Chris Lattner Date: Wed, 24 Aug 2005 00:34:29 +0000 (+0000) Subject: Make -view-isel-dags show the dag before instruction selecting, in case X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=82cfa5d616ff0f760425cbf6e2983fbab618fbda;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d3221c2e759..227d34e1c47 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());