Enable pattern isel by default

llvm-svn: 21898
This commit is contained in:
Chris Lattner 2005-05-12 19:56:09 +00:00
parent 0bfd177e89
commit b5ff4e5e10
1 changed files with 4 additions and 4 deletions

View File

@ -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));