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

Misha Brukman brukman at cs.uiuc.edu
Fri May 30 15:01:02 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

Sparc.cpp updated: 1.63 -> 1.64

---
Log message:

Make LLI behave just like LLC with regard to the compile passes it uses.


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/Sparc.cpp
diff -u llvm/lib/Target/Sparc/Sparc.cpp:1.63 llvm/lib/Target/Sparc/Sparc.cpp:1.64
--- llvm/lib/Target/Sparc/Sparc.cpp:1.63	Tue May 27 17:24:48 2003
+++ llvm/lib/Target/Sparc/Sparc.cpp	Fri May 30 15:00:13 2003
@@ -208,14 +208,29 @@
   //so %fp+offset-8 and %fp+offset-16 are empty slots now!
   PM.add(createStackSlotsPass(*this));
 
+  // Specialize LLVM code for this target machine and then
+  // run basic dataflow optimizations on LLVM code.
+  if (!DisablePreSelect) {
+    PM.add(createPreSelectionPass(*this));
+    PM.add(createReassociatePass());
+    PM.add(createLICMPass());
+    PM.add(createGCSEPass());
+  }
+
   PM.add(createInstructionSelectionPass(*this));
 
+  if (!DisableSched)
+    PM.add(createInstructionSchedulingWithSSAPass(*this));
+
   // new pass: convert Value* in MachineOperand to an unsigned register
   // this brings it in line with what the X86 JIT's RegisterAllocator expects
   //PM.add(createAddRegNumToValuesPass());
 
   PM.add(getRegisterAllocator(*this));
   PM.add(getPrologEpilogInsertionPass());
+
+  if (!DisablePeephole)
+    PM.add(createPeepholeOptsPass(*this));
 
   return false; // success!
 }





More information about the llvm-commits mailing list