summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-24 07:35:09 +0000
committerChris Lattner <sabre@nondot.org>2010-02-24 07:35:09 +0000
commit9812470bc4ddecdf093eff6b99cffaa5507c3fea (patch)
treef23dd1a4381db253c5eb1789f7fbd07fef2510c8
parent1826980fc8b198d417c3ffdd8222afb60bd0a189 (diff)
downloadbcm5719-llvm-9812470bc4ddecdf093eff6b99cffaa5507c3fea.tar.gz
bcm5719-llvm-9812470bc4ddecdf093eff6b99cffaa5507c3fea.zip
Since the new instruction selector now works, I don't need to keep
the old one around for comparative purposes: have the ENABLE_NEW_ISEL #define (which is not enabled on mainline) stop emitting the old isel at all, yay for build time win. llvm-svn: 97033
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp13
-rw-r--r--llvm/utils/TableGen/DAGISelMatcherEmitter.cpp2
2 files changed, 7 insertions, 8 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index 7a01caab85d..1acd5e13c60 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelEmitter.cpp
@@ -1794,9 +1794,7 @@ void DAGISelEmitter::EmitInstructionSelector(raw_ostream &OS) {
OS << "// The main instruction selector code.\n"
<< "SDNode *SelectCode(SDNode *N) {\n"
-#ifdef ENABLE_NEW_ISEL
<< " return SelectCode2(N);\n"
-#endif
<< " MVT::SimpleValueType NVT = N->getValueType(0).getSimpleVT().SimpleTy;\n"
<< " switch (N->getOpcode()) {\n"
<< " default:\n"
@@ -1947,11 +1945,6 @@ void DAGISelEmitter::run(raw_ostream &OS) {
DEBUG(errs() << "\n");
}
- // At this point, we have full information about the 'Patterns' we need to
- // parse, both implicitly from instructions as well as from explicit pattern
- // definitions. Emit the resultant instruction selector.
- EmitInstructionSelector(OS);
-
#ifdef ENABLE_NEW_ISEL
MatcherNode *Matcher = 0;
@@ -1987,5 +1980,11 @@ void DAGISelEmitter::run(raw_ostream &OS) {
//Matcher->dump();
EmitMatcherTable(Matcher, OS);
delete Matcher;
+
+#else
+ // At this point, we have full information about the 'Patterns' we need to
+ // parse, both implicitly from instructions as well as from explicit pattern
+ // definitions. Emit the resultant instruction selector.
+ EmitInstructionSelector(OS);
#endif
}
diff --git a/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp b/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
index e78be79119d..e264d77cec5 100644
--- a/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
@@ -503,7 +503,7 @@ void llvm::EmitMatcherTable(const MatcherNode *Matcher, raw_ostream &O) {
formatted_raw_ostream OS(O);
OS << "// The main instruction selector code.\n";
- OS << "SDNode *SelectCode2(SDNode *N) {\n";
+ OS << "SDNode *SelectCode(SDNode *N) {\n";
MatcherTableEmitter MatcherEmitter;
OpenPOWER on IntegriCloud