[SR-990] Unable to eliminate force cast with known type #43602
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
performance
Additional Detail from JIRA
md5: d4c71e79aeff2734b27fd87267021530
Issue Description:
Swift 3 is unable to optimize f1() down to the trivial function here, even though it should be statically inferable that the cast always succeeds:
I only tested with an older Swift 3:
Apple Swift version 3.0-dev (LLVM a7663bb722, Clang 4ca3c7fa28, Swift 1c2f40e)
The text was updated successfully, but these errors were encountered: