Simplify SelectRoot's interface, and factor out some common code

from all targets.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2008-08-21 16:36:34 +00:00
parent ca84121596
commit ad3460c3c9
10 changed files with 11 additions and 11 deletions

View File

@@ -236,7 +236,7 @@ void AlphaDAGToDAGISel::InstructionSelect(SelectionDAG &DAG) {
DEBUG(BB->dump());
// Select target instructions for the DAG.
DAG.setRoot(SelectRoot(DAG.getRoot()));
SelectRoot();
DAG.RemoveDeadNodes();
}