summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Ilseman <milseman@apple.com>2013-02-27 19:54:00 +0000
committerMichael Ilseman <milseman@apple.com>2013-02-27 19:54:00 +0000
commitba8446c80e89a31a883b0341456e5adb264be3a3 (patch)
tree9fb71d7482deff86e6714b9120b428715712c1ec
parent1fd07059045fec72187846f5faf5d504e06b28c8 (diff)
downloadbcm5719-llvm-ba8446c80e89a31a883b0341456e5adb264be3a3.tar.gz
bcm5719-llvm-ba8446c80e89a31a883b0341456e5adb264be3a3.zip
Reverted: r176136 - Have a way for a target to opt-out of target-independent fast isel
llvm-svn: 176204
-rw-r--r--llvm/include/llvm/CodeGen/FastISel.h5
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp2
2 files changed, 1 insertions, 6 deletions
diff --git a/llvm/include/llvm/CodeGen/FastISel.h b/llvm/include/llvm/CodeGen/FastISel.h
index 57273d8b813..705db7e6434 100644
--- a/llvm/include/llvm/CodeGen/FastISel.h
+++ b/llvm/include/llvm/CodeGen/FastISel.h
@@ -372,11 +372,6 @@ protected:
return 0;
}
- /// Whether we should skip target-independent fast-isel
- virtual bool SkipTargetIndependentFastISel() {
- return false;
- }
-
private:
bool SelectBinaryOp(const User *I, unsigned ISDOpcode);
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
index ff9b2ba542a..04f5b32e042 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -822,7 +822,7 @@ FastISel::SelectInstruction(const Instruction *I) {
}
// First, try doing target-independent selection.
- if (!SkipTargetIndependentFastISel() && SelectOperator(I, I->getOpcode())) {
+ if (SelectOperator(I, I->getOpcode())) {
++NumFastIselSuccessIndependent;
DL = DebugLoc();
return true;
OpenPOWER on IntegriCloud