Rather than doing early instcombine, try doing early CSE instead. This should still...
authorOwen Anderson <resistor@mac.com>
Fri, 14 Jan 2011 00:41:11 +0000 (00:41 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 14 Jan 2011 00:41:11 +0000 (00:41 +0000)
most important simplifications, as well as resolving phase ordering issues where instcombine
would inhibit important CSE'ing opportunities, for instance on BitBench/drop3.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123418 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/StandardPasses.h

index 9ef5ff88511ababb73ef92c82dafb60adad3514b..9cd210e2b0142f650a33067aee9f7ad375b88658 100644 (file)
@@ -83,7 +83,7 @@ namespace llvm {
       createStandardAliasAnalysisPasses(PM);
       PM->add(createCFGSimplificationPass());
       PM->add(createScalarReplAggregatesPass());
-      PM->add(createInstructionCombiningPass());
+      PM->add(createEarlyCSEPass());
     }
   }