mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When we process a constraint, the first step is generally to call getFixedTypeRecursive() to look through type variables. When this operation actually does non-trivial work, we could save that result by considering the current constraint "solved" and generating a new constraint (if needed!) with the simplified types. This commit adds the infrastructure to do that, because it's important when getFixedTypeRecursive() starts performing more interesting substitutions (e.g., handling member types of type variables). However, enabling for the common case of looking through a type variable isn't profitable (it's ~2% slower to type-check the standard library). Stage in this infrastructure change now.
161 KiB
161 KiB