Run another local value numbering phase after redundancy elimination
authorChris Lattner <sabre@nondot.org>
Tue, 14 May 2002 16:23:14 +0000 (16:23 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 14 May 2002 16:23:14 +0000 (16:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2625 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccas/gccas.cpp

index c2f7a8c542b5c7b3f112928afc0469838a30b15c..1a0067e296ea53c6922c36aaef48290e454b2bb8 100644 (file)
@@ -83,6 +83,10 @@ int main(int argc, char **argv) {
     Passes.add(createLICMPass());                   // Hoist loop invariants
     Passes.add(createGCSEPass());                   // Remove common subexprs
     Passes.add(createSCCPPass());                   // Constant prop with SCCP
+
+    // Run instcombine after redundancy elimination to exploit opportunities
+    // opened up by them.
+    Passes.add(createInstructionCombiningPass());
     Passes.add(createDeadCodeEliminationPass());    // Remove Dead code/vars
   }
   Passes.add(new WriteBytecodePass(&Out));        // Write bytecode to file...