Make -view-isel-dags show the dag before instruction selecting, in case

the target isel crashes due to unimplemented features like calls :)

llvm-svn: 22997
This commit is contained in:
Chris Lattner 2005-08-24 00:34:29 +00:00
parent 72eab5dd5c
commit 99282c7b92
1 changed files with 2 additions and 2 deletions

View File

@ -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());