mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-18 10:31:57 +00:00
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
This commit is contained in:
parent
0750a40a4f
commit
82cfa5d616
@ -1228,12 +1228,12 @@ void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB, MachineFunction &MF,
|
|||||||
DEBUG(std::cerr << "Legalized selection DAG:\n");
|
DEBUG(std::cerr << "Legalized selection DAG:\n");
|
||||||
DEBUG(DAG.dump());
|
DEBUG(DAG.dump());
|
||||||
|
|
||||||
|
if (ViewDAGs) DAG.viewGraph();
|
||||||
|
|
||||||
// Third, instruction select all of the operations to machine code, adding the
|
// Third, instruction select all of the operations to machine code, adding the
|
||||||
// code to the MachineBasicBlock.
|
// code to the MachineBasicBlock.
|
||||||
InstructionSelectBasicBlock(DAG);
|
InstructionSelectBasicBlock(DAG);
|
||||||
|
|
||||||
if (ViewDAGs) DAG.viewGraph();
|
|
||||||
|
|
||||||
DEBUG(std::cerr << "Selected machine code:\n");
|
DEBUG(std::cerr << "Selected machine code:\n");
|
||||||
DEBUG(BB->dump());
|
DEBUG(BB->dump());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user