[llvm-commits] CVS: llvm/lib/Target/X86/X86.h X86TargetMachine.cpp X86ISelSimple.cpp
Nate Begeman
natebegeman at mac.com
Thu Aug 18 16:53:28 PDT 2005
Changes in directory llvm/lib/Target/X86:
X86.h updated: 1.35 -> 1.36
X86TargetMachine.cpp updated: 1.84 -> 1.85
X86ISelSimple.cpp (r1.322) removed
---
Log message:
Remove the X86 and PowerPC Simple instruction selectors; their time has
passed.
---
Diffs of the changes: (+4 -16)
X86.h | 6 ------
X86TargetMachine.cpp | 14 ++++----------
2 files changed, 4 insertions(+), 16 deletions(-)
Index: llvm/lib/Target/X86/X86.h
diff -u llvm/lib/Target/X86/X86.h:1.35 llvm/lib/Target/X86/X86.h:1.36
--- llvm/lib/Target/X86/X86.h:1.35 Mon Jul 11 00:17:48 2005
+++ llvm/lib/Target/X86/X86.h Thu Aug 18 18:53:15 2005
@@ -32,12 +32,6 @@
extern X86VectorEnum X86Vector;
extern bool X86ScalarSSE;
-/// createX86SimpleInstructionSelector - This pass converts an LLVM function
-/// into a machine code representation in a very simple peep-hole fashion. The
-/// generated code sucks but the implementation is nice and simple.
-///
-FunctionPass *createX86SimpleInstructionSelector(TargetMachine &TM);
-
/// createX86PatternInstructionSelector - This pass converts an LLVM function
/// into a machine code representation in a more aggressive way.
///
Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.84 llvm/lib/Target/X86/X86TargetMachine.cpp:1.85
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.84 Wed Jul 27 01:12:34 2005
+++ llvm/lib/Target/X86/X86TargetMachine.cpp Thu Aug 18 18:53:15 2005
@@ -120,11 +120,8 @@
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
- // Default to pattern ISel
- if (PatternISelTriState == 0)
- PM.add(createX86SimpleInstructionSelector(*this));
- else
- PM.add(createX86PatternInstructionSelector(*this));
+ // Install an instruction selector.
+ PM.add(createX86PatternInstructionSelector(*this));
// Run optional SSA-based machine code optimizations next...
if (!NoSSAPeephole)
@@ -191,11 +188,8 @@
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
- // Default to pattern ISel
- if (PatternISelTriState == 0)
- PM.add(createX86SimpleInstructionSelector(TM));
- else
- PM.add(createX86PatternInstructionSelector(TM));
+ // Install an instruction selector.
+ PM.add(createX86PatternInstructionSelector(TM));
// Run optional SSA-based machine code optimizations next...
if (!NoSSAPeephole)
More information about the llvm-commits
mailing list