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

Brian Gaeke gaeke at cs.uiuc.edu
Fri Dec 10 00:39:44 PST 2004



Changes in directory llvm/lib/Target/SparcV8:

SparcV8TargetMachine.cpp updated: 1.20 -> 1.21
---
Log message:

Move -lowerselect later in the chain; some select instructions were
slipping through into the instruction selector, which can't deal with
them yet.


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

Index: llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.20 llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.21
--- llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.20	Thu Dec  9 12:51:02 2004
+++ llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp	Fri Dec 10 02:39:30 2004
@@ -65,9 +65,6 @@
   // Replace malloc and free instructions with library calls.
   PM.add(createLowerAllocationsPass());
 
-  // FIXME: implement the select instruction in the instruction selector.
-  PM.add(createLowerSelectPass());
-  
   // FIXME: implement the switch instruction in the instruction selector.
   PM.add(createLowerSwitchPass());
 
@@ -79,6 +76,9 @@
   // Make sure that no unreachable blocks are instruction selected.
   PM.add(createUnreachableBlockEliminationPass());
 
+  // FIXME: implement the select instruction in the instruction selector.
+  PM.add(createLowerSelectPass());
+  
   PM.add(createSparcV8SimpleInstructionSelector(*this));
 
   // Print machine instructions as they were initially generated.
@@ -118,9 +118,6 @@
   // Replace malloc and free instructions with library calls.
   PM.add(createLowerAllocationsPass());
   
-  // FIXME: implement the select instruction in the instruction selector.
-  PM.add(createLowerSelectPass());
-  
   // FIXME: implement the switch instruction in the instruction selector.
   PM.add(createLowerSwitchPass());
 
@@ -132,6 +129,9 @@
   // Make sure that no unreachable blocks are instruction selected.
   PM.add(createUnreachableBlockEliminationPass());
 
+  // FIXME: implement the select instruction in the instruction selector.
+  PM.add(createLowerSelectPass());
+  
   PM.add(createSparcV8SimpleInstructionSelector(TM));
 
   // Print machine instructions as they were initially generated.






More information about the llvm-commits mailing list