You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixscala#2903: Reduce the depth of trees generated in PatternMatcher
* Extract all match arguments before checking conditions on them like scalac does.
This avoids an extra nested block for each match variable.
* Merge conditions of nested `if` expressions if their `else` branch is the same.
This optimization combined with the previous removes most of the nested `if`s
created to check the matched args.
0 commit comments