Disable the pattern isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15787 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index 0a965ec..51ba378 100644
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/lib/Target/X86/X86TargetMachine.cpp
@@ -26,12 +26,6 @@
using namespace llvm;
namespace {
-#if 0 // FIXME: This will be used in the future.
- cl::opt<bool> NoPatternISel("disable-pattern-isel", cl::init(true),
- cl::desc("Use the 'simple' X86 instruction selector"));
-#else
- static const bool NoPatternISel = true;
-#endif
cl::opt<bool> NoSSAPeephole("disable-ssa-peephole", cl::init(true),
cl::desc("Disable the ssa-based peephole optimizer "
"(defaults to disabled)"));
@@ -87,10 +81,7 @@
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
- if (NoPatternISel)
- PM.add(createX86SimpleInstructionSelector(*this));
- else
- PM.add(createX86PatternInstructionSelector(*this));
+ PM.add(createX86SimpleInstructionSelector(*this));
// Run optional SSA-based machine code optimizations next...
if (!NoSSAPeephole)
@@ -145,10 +136,7 @@
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
- if (NoPatternISel)
- PM.add(createX86SimpleInstructionSelector(TM));
- else
- PM.add(createX86PatternInstructionSelector(TM));
+ PM.add(createX86SimpleInstructionSelector(TM));
// Run optional SSA-based machine code optimizations next...
if (!NoSSAPeephole)