summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-04-15 22:12:16 +0000
committerNate Begeman <natebegeman@mac.com>2005-04-15 22:12:16 +0000
commit779c5cbb44f0a79f27d26aeb14a22f5156da5943 (patch)
tree47e63d732d097b08a9b843752af80d0f2afc0e80 /llvm/lib/Target/X86/X86TargetMachine.cpp
parente0a9d042e2e1a6827cd9555df58f4fbc276db26d (diff)
downloadbcm5719-llvm-779c5cbb44f0a79f27d26aeb14a22f5156da5943.tar.gz
bcm5719-llvm-779c5cbb44f0a79f27d26aeb14a22f5156da5943.zip
Make pattern isel default for ppc
Add new ppc beta option related to using condition registers Make pattern isel control flag (-enable-pattern-isel) global and tristate 0 == off 1 == on 2 == target default llvm-svn: 21309
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index daa97b2464a..aa6de9c7b26 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -41,9 +41,6 @@ namespace {
cl::opt<bool> DisableOutput("disable-x86-llc-output", cl::Hidden,
cl::desc("Disable the X86 asm printer, for use "
"when profiling the code generator."));
- cl::opt<bool> DisablePatternISel("disable-pattern-isel", cl::Hidden,
- cl::desc("Disable the pattern isel XXX FIXME"),
- cl::init(true));
#if 0
// FIXME: This should eventually be handled with target triples and
@@ -113,7 +110,8 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM,
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
- if (DisablePatternISel)
+ // Default to simple ISel
+ if (PatternISelTriState != 1)
PM.add(createX86SimpleInstructionSelector(*this));
else
PM.add(createX86PatternInstructionSelector(*this));
@@ -171,7 +169,8 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
- if (DisablePatternISel)
+ // Default to simple ISel
+ if (PatternISelTriState != 1)
PM.add(createX86SimpleInstructionSelector(TM));
else
PM.add(createX86PatternInstructionSelector(TM));
OpenPOWER on IntegriCloud