diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-15 23:02:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-15 23:02:17 +0000 |
commit | 1d088db15e24c81ea602682444b06dc75e659acd (patch) | |
tree | d6afeeac0aacec5cb334a63944a8bf773a14cfc3 /llvm/lib/Target/X86/X86TargetMachine.cpp | |
parent | 9f714c8d35717ad7bdb660c2d1cbcf7b979a842e (diff) | |
download | bcm5719-llvm-1d088db15e24c81ea602682444b06dc75e659acd.tar.gz bcm5719-llvm-1d088db15e24c81ea602682444b06dc75e659acd.zip |
Disable the pattern isel
llvm-svn: 15787
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetMachine.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp index 0a965ec7eaa..51ba378135d 100644 --- a/llvm/lib/Target/X86/X86TargetMachine.cpp +++ b/llvm/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 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM, // 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 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) { // 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) |