Run LICM before GCSE!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4135 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp
index cd17172..5a0acfd 100644
--- a/lib/Target/TargetMachine.cpp
+++ b/lib/Target/TargetMachine.cpp
@@ -130,8 +130,8 @@
     {
       PM.add(createPreSelectionPass(*this));
       /* PM.add(createReassociatePass()); */
-      PM.add(createGCSEPass());
       PM.add(createLICMPass());
+      PM.add(createGCSEPass());
     }
 
   PM.add(createInstructionSelectionPass(*this));