mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Have a way for a target to opt-out of target-independent fast isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176136 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
533048228f
commit
bdc98d3510
@ -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…
x
Reference in New Issue
Block a user