Remove the stand-alone generic specialization pass.

We do generic specialization in the inliner now, so we no longer need
the separate pass.

The order the specializations are inserted into the module differs as a
result of this, which means that one unfortunately huge test needed
substantial changes.

At some point this test needs to be converted to SIL and split up into
smaller chunks.

Swift SVN r31323
This commit is contained in:
Mark Lacey
2015-08-19 00:24:00 +00:00
parent 53aa84aee6
commit 4c62204007
7 changed files with 183 additions and 366 deletions

View File

@@ -81,7 +81,6 @@ def ssapass_passlist(optlevel):
p.CodeMotion, # Need to add proper argument here
p.GlobalARCOpts,
p.SpeculativeDevirtualizer,
p.GenericSpecializer,
p.SILLinker,
inliner_for_optlevel(optlevel),
p.SimplifyCFG,
@@ -100,9 +99,6 @@ def lower_passlist():
p.FunctionSignatureOpts,
])
def specialization_passlist():
return ppipe.PassList([p.SILLinker, p.GenericSpecializer])
def normal_passpipelines():
result = []