IPSCCP apparently is not a superset of IPCP, this is bad,
authorChris Lattner <sabre@nondot.org>
Sun, 1 Nov 2009 19:29:12 +0000 (19:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 1 Nov 2009 19:29:12 +0000 (19:29 +0000)
but I'll investigate it separately.  This unbreaks
test/FrontendC/weak_constant.c

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

include/llvm/Support/StandardPasses.h

index ff0a6d699178f7759c3bf1638fc8030eb16c5838..ffa93149af8ed40ce068bf5befda968a1d82815b 100644 (file)
@@ -100,6 +100,7 @@ namespace llvm {
     if (UnitAtATime) {
       PM->add(createGlobalOptimizerPass());     // Optimize out global vars
       
+      PM->add(createIPConstantPropagationPass());              // IP CP
       PM->add(createIPSCCPPass());              // IP SCCP
       PM->add(createDeadArgEliminationPass());  // Dead argument elimination
     }