Generic Specialization Heuristics

Hi all,

From what I understand, the Swift compiler may specialize a generic function based on a set of heuristics. Where are these heuristics implemented in the source code?

swift/GenericSpecializer.cpp at main · apple/swift · GitHub and swift/Generics.cpp at main · apple/swift · GitHub maybe?

2 Likes

Thank you! That seems to be it.

1 Like