Inference regression of union splitting in 1.2 vs 1.1 #32452
Labels
compiler:inference
Type inference
kind:potential benchmark
Could make a good benchmark in BaseBenchmarks
Consider the code posted in https://discourse.julialang.org/t/significant-decrease-in-performance-after-seemingly-irrelevant-changes/25796/13?u=kristoffer.carlsson, reposted here:
On 1.1, the return value is correctly inferred and performance is good:
On the backport branch of 1.2-rc2 we instead have:
and performance is not so good:
The
looks kinda odd to me. Since we for
%14
know that%5 isa B
why does thegetfield
not infer toFloat64
?The text was updated successfully, but these errors were encountered: