forked from OSchip/llvm-project
Change flag from Enable to Disable since we're enabled by default.
Also don't use fast-isel on non-darwin since it's untested. llvm-svn: 116217
This commit is contained in:
parent
279362dd5a
commit
5501b7e805
|
@ -46,9 +46,9 @@
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
EnableARMFastISel("arm-fast-isel",
|
DisableARMFastISel("disable-arm-fast-isel",
|
||||||
cl::desc("Turn on experimental ARM fast-isel support"),
|
cl::desc("Turn on experimental ARM fast-isel support"),
|
||||||
cl::init(true), cl::Hidden);
|
cl::init(false), cl::Hidden);
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
@ -1555,7 +1555,11 @@ bool ARMFastISel::TargetSelectInstruction(const Instruction *I) {
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
llvm::FastISel *ARM::createFastISel(FunctionLoweringInfo &funcInfo) {
|
llvm::FastISel *ARM::createFastISel(FunctionLoweringInfo &funcInfo) {
|
||||||
if (EnableARMFastISel) return new ARMFastISel(funcInfo);
|
// Completely untested on non-darwin.
|
||||||
|
const TargetMachine &TM = funcInfo.MF->getTarget();
|
||||||
|
const ARMSubtarget *Subtarget = &TM.getSubtarget<ARMSubtarget>();
|
||||||
|
if (Subtarget->isTargetDarwin() && !DisableARMFastISel)
|
||||||
|
return new ARMFastISel(funcInfo);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue