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?


Thank you! That seems to be it.

1 Like