diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-12 19:56:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-12 19:56:09 +0000 |
commit | 664941859886c3337efce455c9df119bc48878a2 (patch) | |
tree | 022aa287348fcd3ded628e827f8686f30154d75d /lib/Target/X86/X86TargetMachine.cpp | |
parent | 3becf2026bec881a60cbbe0031d8c51f4d6d4e28 (diff) |
Enable pattern isel by default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21898 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index bae5d65bc1..fd5bcb268e 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -110,8 +110,8 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM, // Make sure that no unreachable blocks are instruction selected. PM.add(createUnreachableBlockEliminationPass()); - // Default to simple ISel - if (PatternISelTriState != 1) + // Default to pattern ISel + if (PatternISelTriState == 0) PM.add(createX86SimpleInstructionSelector(*this)); else PM.add(createX86PatternInstructionSelector(*this)); @@ -169,8 +169,8 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) { // Make sure that no unreachable blocks are instruction selected. PM.add(createUnreachableBlockEliminationPass()); - // Default to simple ISel - if (PatternISelTriState != 1) + // Default to pattern ISel + if (PatternISelTriState == 0) PM.add(createX86SimpleInstructionSelector(TM)); else PM.add(createX86PatternInstructionSelector(TM)); |