aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-01-14 00:36:40 +0000
committerOwen Anderson <resistor@mac.com>2011-01-14 00:36:40 +0000
commit68a659d423b56e3cafcc3751b33e2472bb191048 (patch)
tree9aaf4f192626a9ff88a67b24d58acb547f9edd4f /include
parentd7540414935fb30405ed07a9b193d3f8748f5274 (diff)
downloadexternal_llvm-68a659d423b56e3cafcc3751b33e2472bb191048.zip
external_llvm-68a659d423b56e3cafcc3751b33e2472bb191048.tar.gz
external_llvm-68a659d423b56e3cafcc3751b33e2472bb191048.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/StandardPasses.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/llvm/Support/StandardPasses.h b/include/llvm/Support/StandardPasses.h
index e2455be..9ef5ff8 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());
}
}