Commit Graph

2 Commits

Author SHA1 Message Date
Michael Gottesman
11ad8ff531 [enum-simplification] Make enum simplification global and teach it how to infer enum case from switch_enum.
With this change we now simplify 2192 retain, release operations on
enums an increase of ~56% over the previous stat, 1403 retain, release
operations.

The next step is to implement switch_enum simplification and pushing
releases on enums into switch regions (the real purpose of this pass).

rdar://17139960

Swift SVN r18740
2014-06-09 00:07:00 +00:00
Michael Gottesman
125c206d3b Move BlotMapVector -> include/swift/Basic/BlotMapVector so it can be used in SILAnalysis and SILPasses. NFC.
Swift SVN r18736
2014-06-07 22:20:26 +00:00