From: Owen Anderson Date: Fri, 14 Jan 2011 00:36:40 +0000 (+0000) Subject: Don't bother conditionalizing the use of SROA in -O1 mode. We're already running... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=68a659d423b56e3cafcc3751b33e2472bb191048;p=oota-llvm.git Don't bother conditionalizing the use of SROA in -O1 mode. We're already running it unconditionally later in the pipeline. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123416 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/StandardPasses.h b/include/llvm/Support/StandardPasses.h index e2455bee193..9ef5ff88511 100644 --- a/include/llvm/Support/StandardPasses.h +++ b/include/llvm/Support/StandardPasses.h @@ -82,10 +82,7 @@ namespace llvm { if (OptimizationLevel > 0) { createStandardAliasAnalysisPasses(PM); PM->add(createCFGSimplificationPass()); - if (OptimizationLevel == 1) - PM->add(createPromoteMemoryToRegisterPass()); - else - PM->add(createScalarReplAggregatesPass()); + PM->add(createScalarReplAggregatesPass()); PM->add(createInstructionCombiningPass()); } }