swift
35679508 - IRGen: Reenable caching opaque type metadata accessors.

Commit
5 years ago
IRGen: Reenable caching opaque type metadata accessors. Dynamic replacement can only really get away with replacing opaque return types if a function's opaque type has never been instantiated in the first place. Meanwhile, repeatedly instantiating the metadata is too slow for many clients to tolerate. Fixes rdar://problem/53213600.
Author
Committer
Parents
  • lib/IRGen
    • File
      MetadataRequest.cpp
  • test
    • IRGen
      • File
        opaque_result_type.swift
    • Interpreter
      • Inputs
        • File
          dynamic_replacement_opaque1.swift
        • File
          dynamic_replacement_opaque2.swift
      • File
        dynamic_replacement_opaque_result.swift