Embedded KeyPath Optimization Limited to Types Internal to the Module #81588
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
This PR added support for optimizing key paths out of Embedded code, but it seems to work solely on types declared in the current module. Trying something like
Box<String>().count
fails for example.Reproduction
Building with the following flags:
-Xfrontend -enable-experimental-feature -Xfrontend Embedded -wmo -Xfrontend -enable-experimental-feature -Xfrontend SymbolLinkageMarkers
:Or see live in Godbolt
Expected behavior
I would expect key paths to external types to also get optimized out.
Environment
Swift version 6.1-dev (LLVM 83bb915697f5992, Swift 1e211b4)
Target: x86_64-unknown-linux-gnu
Additional information
No response
The text was updated successfully, but these errors were encountered: