[ExecutionEngine] Re-enable FastISel for non-iOS arm targets.
authorLang Hames <lhames@gmail.com>
Sat, 11 Jan 2020 17:59:33 +0000 (09:59 -0800)
committerLang Hames <lhames@gmail.com>
Sat, 11 Jan 2020 18:49:59 +0000 (10:49 -0800)
Patch by Nicolas Capens. Thanks Nicolas!

https://reviews.llvm.org/D65015

llvm/lib/ExecutionEngine/TargetSelect.cpp

index 0d9c6cf..28ea04b 100644 (file)
@@ -83,13 +83,6 @@ TargetMachine *EngineBuilder::selectTarget(const Triple &TargetTriple,
     FeaturesStr = Features.getString();
   }
 
-  // FIXME: non-iOS ARM FastISel is broken with MCJIT.
-  if (TheTriple.getArch() == Triple::arm &&
-      !TheTriple.isiOS() &&
-      OptLevel == CodeGenOpt::None) {
-    OptLevel = CodeGenOpt::Less;
-  }
-
   // Allocate a target...
   TargetMachine *Target =
       TheTarget->createTargetMachine(TheTriple.getTriple(), MCPU, FeaturesStr,