mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
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:
parent
d754041493
commit
68a659d423
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user