From 9ec8d4d5effebfd672f0a482dd915c0ed1a31d20 Mon Sep 17 00:00:00 2001 From: Meghana Gupta Date: Mon, 6 Jul 2020 23:05:33 -0700 Subject: [PATCH] [ownership] Move ome after GlobalOpt --- lib/SILOptimizer/PassManager/PassPipeline.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/SILOptimizer/PassManager/PassPipeline.cpp b/lib/SILOptimizer/PassManager/PassPipeline.cpp index d2285a1620244..3f586c5cc2734 100644 --- a/lib/SILOptimizer/PassManager/PassPipeline.cpp +++ b/lib/SILOptimizer/PassManager/PassPipeline.cpp @@ -453,14 +453,14 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) { // is linked in from the stdlib. P.addTempRValueOpt(); - // We earlier eliminated ownership if we are not compiling the stdlib. Now - // handle the stdlib functions. - P.addNonTransparentFunctionOwnershipModelEliminator(); - // Needed to serialize static initializers of globals for cross-module // optimization. P.addGlobalOpt(); + // We earlier eliminated ownership if we are not compiling the stdlib. Now + // handle the stdlib functions. + P.addNonTransparentFunctionOwnershipModelEliminator(); + // Add the outliner pass (Osize). P.addOutliner();