From 2db49d0a22877327d7d8cb23cf4f8968f3f9def9 Mon Sep 17 00:00:00 2001 From: Chris Lattner 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 llvm-svn: 85735 --- 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 }