aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-01 19:29:12 +0000
committerChris Lattner <sabre@nondot.org>2009-11-01 19:29:12 +0000
commit3e54f8850a262fe0c8c7253b4e0ac700566c7365 (patch)
treebe4c2934b36dd5243031cc31608e5f7b7b972152 /include
parentc7e4e6edc4b020f71375666f913ab0eacc6366c7 (diff)
downloadexternal_llvm-3e54f8850a262fe0c8c7253b4e0ac700566c7365.zip
external_llvm-3e54f8850a262fe0c8c7253b4e0ac700566c7365.tar.gz
external_llvm-3e54f8850a262fe0c8c7253b4e0ac700566c7365.tar.bz2
IPSCCP apparently is not a superset of IPCP, this is bad,
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/StandardPasses.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Support/StandardPasses.h b/include/llvm/Support/StandardPasses.h
index ff0a6d6..ffa9314 100644
--- a/include/llvm/Support/StandardPasses.h
+++ b/include/llvm/Support/StandardPasses.h
@@ -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
}