[llvm] r176136 - Have a way for a target to opt-out of target-independent fast isel
Michael Ilseman
milseman at apple.com
Tue Feb 26 15:15:23 PST 2013
Author: milseman
Date: Tue Feb 26 17:15:23 2013
New Revision: 176136
URL: http://llvm.org/viewvc/llvm-project?rev=176136&view=rev
Log:
Have a way for a target to opt-out of target-independent fast isel
Modified:
llvm/trunk/include/llvm/CodeGen/FastISel.h
llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
Modified: llvm/trunk/include/llvm/CodeGen/FastISel.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/FastISel.h?rev=176136&r1=176135&r2=176136&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/FastISel.h (original)
+++ llvm/trunk/include/llvm/CodeGen/FastISel.h Tue Feb 26 17:15:23 2013
@@ -372,6 +372,11 @@ protected:
return 0;
}
+ /// Whether we should skip target-independent fast-isel
+ virtual bool SkipTargetIndependentFastISel() {
+ return false;
+ }
+
private:
bool SelectBinaryOp(const User *I, unsigned ISDOpcode);
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp?rev=176136&r1=176135&r2=176136&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp Tue Feb 26 17:15:23 2013
@@ -822,7 +822,7 @@ FastISel::SelectInstruction(const Instru
}
// First, try doing target-independent selection.
- if (SelectOperator(I, I->getOpcode())) {
+ if (!SkipTargetIndependentFastISel() && SelectOperator(I, I->getOpcode())) {
++NumFastIselSuccessIndependent;
DL = DebugLoc();
return true;
More information about the llvm-commits
mailing list