From d48050aa1509130871b8bb2453270c92b969c2e7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 5 Oct 2005 06:09:10 +0000 Subject: [PATCH] make sure that -view-isel-dags is the input to the isel, not the input to the second phase of dag combining git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23631 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.34.1