From 68a659d423b56e3cafcc3751b33e2472bb191048 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 14 Jan 2011 00:36:40 +0000 Subject: [PATCH] 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 --- include/llvm/Support/StandardPasses.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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()); } } -- 2.34.1