mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Have a way for a target to opt-out of target-independent fast isel
llvm-svn: 176136
This commit is contained in:
parent
d7e3d527dc
commit
84760d376c
@ -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);
|
||||
|
||||
|
@ -822,7 +822,7 @@ FastISel::SelectInstruction(const Instruction *I) {
|
||||
}
|
||||
|
||||
// First, try doing target-independent selection.
|
||||
if (SelectOperator(I, I->getOpcode())) {
|
||||
if (!SkipTargetIndependentFastISel() && SelectOperator(I, I->getOpcode())) {
|
||||
++NumFastIselSuccessIndependent;
|
||||
DL = DebugLoc();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user