diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index e9edc3e85b2..f7b5478f3eb 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1302,11 +1302,11 @@ void SelectionDAGISel::SelectBasicBlock(BasicBlock *LLVMBB, MachineFunction &MF, DEBUG(std::cerr << "Legalized selection DAG:\n"); DEBUG(DAG.dump()); - if (ViewDAGs) DAG.viewGraph(); - // Run the DAG combiner in post-legalize mode, if we are told to do so if (CombinerEnabled) DAG.Combine(true); + if (ViewDAGs) DAG.viewGraph(); + // Third, instruction select all of the operations to machine code, adding the // code to the MachineBasicBlock. InstructionSelectBasicBlock(DAG);