Skip to content

Commit 68f4854

Browse files
committed
SILOptimizer: add an additional TempRValueOpt pass later in the pipeline.
This can compensate the performance regression of the more conservative handling of function calls in TempRValueOpt (see previous commit). The pass runs after the inlining passes and can therefore optimize in some cases where it's not possible before inlining.
1 parent 9f85cb8 commit 68f4854

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ void addFunctionPasses(SILPassPipelinePlan &P,
393393
P.addEarlyCodeMotion();
394394
P.addReleaseHoisting();
395395
P.addARCSequenceOpts();
396+
P.addTempRValueOpt();
396397

397398
P.addSimplifyCFG();
398399
if (OpLevel == OptimizationLevelKind::LowLevel) {

0 commit comments

Comments
 (0)