diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-02-12 20:41:24 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-02-12 20:41:24 +0000 |
commit | 232f44778213f65e18186a779dfc98ea77b6a4f1 (patch) | |
tree | c08e124939382af538e5106a86278d569c708747 /llvm/lib | |
parent | 01674939b2347b461adeca09398ef5e69b1717c4 (diff) | |
download | bcm5719-llvm-232f44778213f65e18186a779dfc98ea77b6a4f1.tar.gz bcm5719-llvm-232f44778213f65e18186a779dfc98ea77b6a4f1.zip |
Get rid of some GLOBAL_ISEL ifdefs that should be harmless for code size.
More to come, but those were easy.
llvm-svn: 260723
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 0e6171607d5..583d1687311 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -42,11 +42,9 @@ static cl::opt<cl::boolOrDefault> EnableFastISelOption("fast-isel", cl::Hidden, cl::desc("Enable the \"fast\" instruction selector")); -#ifdef LLVM_BUILD_GLOBAL_ISEL static cl::opt<bool> EnableGlobalISel("global-isel", cl::Hidden, cl::init(false), cl::desc("Enable the \"global\" instruction selector")); -#endif void LLVMTargetMachine::initAsmInfo() { MRI = TheTarget.createMCRegInfo(getTargetTriple().str()); @@ -141,14 +139,11 @@ addPassesToGenerateCode(LLVMTargetMachine *TM, PassManagerBase &PM, TM->getO0WantsFastISel())) TM->setFastISel(true); -#ifdef LLVM_BUILD_GLOBAL_ISEL - if (EnableGlobalISel) { + // Ask the target for an isel. + if (LLVM_UNLIKELY(EnableGlobalISel)) { if (PassConfig->addIRTranslator()) return nullptr; - } else -#endif - // Ask the target for an isel. - if (PassConfig->addInstSelector()) + } else if (PassConfig->addInstSelector()) return nullptr; PassConfig->addMachinePasses(); |