GCSE is faster than SCCP, and it makes SCCP's job easier, so run it first.
authorChris Lattner <sabre@nondot.org>
Mon, 6 May 2002 18:54:12 +0000 (18:54 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 6 May 2002 18:54:12 +0000 (18:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2503 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccas/gccas.cpp

index 5d14e3c4a0005cb8aab305af96f977fc8fa2841e..8539180c288cbf5f1aac634b1138bad685d63993 100644 (file)
@@ -84,8 +84,8 @@ int main(int argc, char **argv) {
     Passes.add(createPromoteMemoryToRegister());    // Promote alloca's to regs
     Passes.add(createInstructionCombiningPass());   // Combine silly seq's
     Passes.add(createDeadInstEliminationPass());    // Kill InstCombine remnants
-    Passes.add(createSCCPPass());                   // Constant prop with SCCP
     Passes.add(createGCSEPass());                   // Remove common subexprs
+    Passes.add(createSCCPPass());                   // Constant prop with SCCP
     Passes.add(createDeadCodeEliminationPass());    // Remove Dead code/vars
   }
   Passes.add(new WriteBytecodePass(&Out));        // Write bytecode to file...