Use SelectRoot() as the entry to any tblgen based isel.

llvm-svn: 25998
This commit is contained in:
Evan Cheng 2006-02-05 06:51:51 +00:00
parent fb902782e8
commit 973e4051d6

View File

@ -24,6 +24,7 @@
#include "llvm/Target/TargetLowering.h"
#include "llvm/Support/Debug.h"
#include <iostream>
#include <set>
using namespace llvm;
//===----------------------------------------------------------------------===//
@ -958,7 +959,7 @@ void SparcDAGToDAGISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
DEBUG(BB->dump());
// Select target instructions for the DAG.
DAG.setRoot(Select(DAG.getRoot()));
DAG.setRoot(SelectRoot(DAG.getRoot()));
CodeGenMap.clear();
DAG.RemoveDeadNodes();