Use SelectRoot() as entry of any tblgen based isel.
llvm-svn: 25997
diff --git a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
index 8405b26..cab386d 100644
--- a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
@@ -29,6 +29,7 @@
#include "llvm/Support/MathExtras.h"
#include <algorithm>
#include <iostream>
+#include <set>
using namespace llvm;
namespace {
@@ -139,7 +140,7 @@
DEBUG(BB->dump());
// Select target instructions for the DAG.
- DAG.setRoot(Select(DAG.getRoot()));
+ DAG.setRoot(SelectRoot(DAG.getRoot()));
CodeGenMap.clear();
DAG.RemoveDeadNodes();