[SR-1111] Non-optimized builds should avoid redundant thick_to_objc_metatype conversions #43724
Labels
compiler
The Swift compiler itself
good first issue
Good for newcomers
improvement
IRGen
LLVM IR generation
non-optimized only
Flag: An issue whose reproduction requires non-optimized compilation
Additional Detail from JIRA
md5: ee5fa37243b2596a51a6125675863696
Issue Description:
In this code:
We're smart enough to avoid emitting two references to the metadata for NSRunLoop, but not smart enough (in -Onone builds) to avoid emitting the conversion to an ObjC
Class
twice, which involves a branch. We should be able to reuse the value from the firstthick_to_objc_metatype
conversion.The text was updated successfully, but these errors were encountered: