From af7a07b0f2dfaff6dd248fde254e587b51a257d8 Mon Sep 17 00:00:00 2001 From: Mark Lacey Date: Wed, 1 Apr 2015 02:11:00 +0000 Subject: [PATCH] Remove the post-inliner runs of the devirtualization pass. They have no effect. The pre-inliner run may be enabling some specialization at this point. If it turns out that is not the case, I'll remove those runs and delete the pass. Swift SVN r26792 --- lib/SILPasses/Passes.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/SILPasses/Passes.cpp b/lib/SILPasses/Passes.cpp index 05c13b584fa..778d1b0bc40 100644 --- a/lib/SILPasses/Passes.cpp +++ b/lib/SILPasses/Passes.cpp @@ -275,7 +275,6 @@ void swift::runSILOptimizationPasses(SILModule &Module) { PM.addClosureSpecializer(); // Insert inline caches for virtual calls. - PM.addDevirtualizer(); PM.addInlineCaches(); // Optimize function signatures if we are asked to. @@ -306,7 +305,6 @@ void swift::runSILOptimizationPasses(SILModule &Module) { PM.addGlobalLoadStoreOpts(); PM.addLateCodeMotion(); PM.addGlobalARCOpts(); - PM.addDevirtualizer(); PM.runOneIteration(); PM.resetAndRemoveTransformations();