[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPC.h PowerPCTargetMachine.cpp PPC32ISelSimple.cpp
Nate Begeman
natebegeman at mac.com
Thu Aug 18 16:53:28 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PowerPC.h updated: 1.20 -> 1.21
PowerPCTargetMachine.cpp updated: 1.64 -> 1.65
PPC32ISelSimple.cpp (r1.145) removed
---
Log message:
Remove the X86 and PowerPC Simple instruction selectors; their time has
passed.
---
Diffs of the changes: (+4 -14)
PowerPC.h | 1 -
PowerPCTargetMachine.cpp | 17 ++++-------------
2 files changed, 4 insertions(+), 14 deletions(-)
Index: llvm/lib/Target/PowerPC/PowerPC.h
diff -u llvm/lib/Target/PowerPC/PowerPC.h:1.20 llvm/lib/Target/PowerPC/PowerPC.h:1.21
--- llvm/lib/Target/PowerPC/PowerPC.h:1.20 Wed Aug 17 14:32:03 2005
+++ llvm/lib/Target/PowerPC/PowerPC.h Thu Aug 18 18:53:15 2005
@@ -27,7 +27,6 @@
};
FunctionPass *createPPCBranchSelectionPass();
-FunctionPass *createPPC32ISelSimple(TargetMachine &TM);
FunctionPass *createPPC32ISelPattern(TargetMachine &TM);
FunctionPass *createPPC32ISelDag(TargetMachine &TM);
FunctionPass *createDarwinAsmPrinter(std::ostream &OS, TargetMachine &TM);
Index: llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.64 llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.65
--- llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp:1.64 Wed Aug 17 14:33:30 2005
+++ llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp Thu Aug 18 18:53:15 2005
@@ -85,13 +85,9 @@
PM.add(createUnreachableBlockEliminationPass());
// Install an instruction selector.
- if (EnablePPCDAGDAG) {
+ if (EnablePPCDAGDAG)
PM.add(createPPC32ISelDag(*this));
-
- } else if (PatternISelTriState == 0) {
- PM.add(createLowerConstantExpressionsPass());
- PM.add(createPPC32ISelSimple(*this));
- } else
+ else
PM.add(createPPC32ISelPattern(*this));
if (PrintMachineCode)
@@ -143,13 +139,8 @@
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
- // Default to pattern ISel
- if (PatternISelTriState == 0) {
- PM.add(createLowerConstantExpressionsPass());
- PM.add(createPPC32ISelSimple(TM));
- } else {
- PM.add(createPPC32ISelPattern(TM));
- }
+ // Install an instruction selector.
+ PM.add(createPPC32ISelPattern(TM));
PM.add(createRegisterAllocator());
PM.add(createPrologEpilogCodeInserter());
More information about the llvm-commits
mailing list