[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu May 12 12:56:26 PDT 2005



Changes in directory llvm/lib/Target/X86:

X86TargetMachine.cpp updated: 1.77 -> 1.78
---
Log message:

Enable pattern isel by default


---
Diffs of the changes:  (+4 -4)

 X86TargetMachine.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.77 llvm/lib/Target/X86/X86TargetMachine.cpp:1.78
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.77	Thu Apr 21 18:38:14 2005
+++ llvm/lib/Target/X86/X86TargetMachine.cpp	Thu May 12 14:56:09 2005
@@ -110,8 +110,8 @@
   // 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 @@
   // 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));






More information about the llvm-commits mailing list