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

Nate Begeman natebegeman at mac.com
Fri Apr 15 15:12:28 PDT 2005



Changes in directory llvm/lib/Target/X86:

X86TargetMachine.cpp updated: 1.75 -> 1.76
---
Log message:

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


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

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


Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.75 llvm/lib/Target/X86/X86TargetMachine.cpp:1.76
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.75	Fri Jan  7 01:50:50 2005
+++ llvm/lib/Target/X86/X86TargetMachine.cpp	Fri Apr 15 17:12:16 2005
@@ -41,9 +41,6 @@
   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 @@
   // 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 @@
   // 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));






More information about the llvm-commits mailing list