From 3e54f8850a262fe0c8c7253b4e0ac700566c7365 Mon Sep 17 00:00:00 2001 From: Chris Lattner <sabre@nondot.org> Date: Sun, 1 Nov 2009 19:29:12 +0000 Subject: [PATCH] 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 --- include/llvm/Support/StandardPasses.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/Support/StandardPasses.h b/include/llvm/Support/StandardPasses.h index ff0a6d69917..ffa93149af8 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 }