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
This commit is contained in:
Owen Anderson 2011-01-14 00:36:40 +00:00
parent d754041493
commit 68a659d423

View File

@ -82,9 +82,6 @@ namespace llvm {
if (OptimizationLevel > 0) { if (OptimizationLevel > 0) {
createStandardAliasAnalysisPasses(PM); createStandardAliasAnalysisPasses(PM);
PM->add(createCFGSimplificationPass()); PM->add(createCFGSimplificationPass());
if (OptimizationLevel == 1)
PM->add(createPromoteMemoryToRegisterPass());
else
PM->add(createScalarReplAggregatesPass()); PM->add(createScalarReplAggregatesPass());
PM->add(createInstructionCombiningPass()); PM->add(createInstructionCombiningPass());
} }