Suboptimal performance for tuples of small unions #57054
Labels
compiler:inference
Type inference
compiler:optimizer
Optimization passes (mostly in base/compiler/ssair/)
performance
Must go faster
For example, these two functions look like they should be equivalent, but the inferred return type of the first is a small union, as desired, while the other one isn't. Using (parametric) structs instead of tuples gives similar results.
With the return type of
bar2
in red,bar
in yellowThe text was updated successfully, but these errors were encountered: