Changes in directory llvm/lib/Target/SparcV8:

SparcV8TargetMachine.cpp updated: 1.35 -> 1.36
---
Log message:

reorder passes


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

 SparcV8TargetMachine.cpp |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.35 
llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.36
--- llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.35       Wed Jan 11 
19:28:56 2006
+++ llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp    Sun Jan 15 01:19:53 2006
@@ -73,9 +73,6 @@
   // FIXME: Implement efficient support for garbage collection intrinsics.
   PM.add(createLowerGCPass());
 
-  // Make sure that no unreachable blocks are instruction selected.
-  PM.add(createUnreachableBlockEliminationPass());
-
   // FIXME: implement the invoke/unwind instructions!
   PM.add(createLowerInvokePass());
 
@@ -90,9 +87,14 @@
     // Replace malloc and free instructions with library calls.
     PM.add(createLowerAllocationsPass());
     PM.add(createLowerSelectPass());
+    // Make sure that no unreachable blocks are instruction selected.
+    PM.add(createUnreachableBlockEliminationPass());
     PM.add(createSparcV8SimpleInstructionSelector(*this));
-  } else
+  } else {
+    // Make sure that no unreachable blocks are instruction selected.
+    PM.add(createUnreachableBlockEliminationPass());
     PM.add(createSparcV8ISelDag(*this));
+  }
 
   // Print machine instructions as they were initially generated.
   if (PrintMachineCode)



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to