diff options
author | Björn Gustavsson <[email protected]> | 2018-09-08 10:52:07 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2018-09-12 14:19:03 +0200 |
commit | 48b844b196e115b2995661ec81c108610acc4b6a (patch) | |
tree | bcd052387a58c787d978548a9f7a5f7bdacfe9cb /lib | |
parent | 9d22c4a02643f883e05d4e245c9724ead3c1ef11 (diff) | |
download | otp-48b844b196e115b2995661ec81c108610acc4b6a.tar.gz otp-48b844b196e115b2995661ec81c108610acc4b6a.tar.bz2 otp-48b844b196e115b2995661ec81c108610acc4b6a.zip |
beam_ssa_type: Remove repeated clauses in meet/2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compiler/src/beam_ssa_type.erl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/compiler/src/beam_ssa_type.erl b/lib/compiler/src/beam_ssa_type.erl index e5f15da836..ae926960bf 100644 --- a/lib/compiler/src/beam_ssa_type.erl +++ b/lib/compiler/src/beam_ssa_type.erl @@ -1025,13 +1025,9 @@ meet(#t_integer{elements={Min1,Max1}}, #t_integer{elements={Min2,Max2}}) -> #t_integer{elements={max(Min1, Min2),min(Max1, Max2)}}; meet(#t_integer{}=T, number) -> T; -meet(float, number) -> float; -meet(#t_integer{}=T, number) -> T; -meet(float, number) -> float; +meet(float=T, number) -> T; meet(number, #t_integer{}=T) -> T; -meet(#t_integer{}=T, number) -> T; meet(number, float=T) -> T; -meet(float=T, number) -> T; meet(list, cons) -> cons; meet(list, nil) -> nil; meet(cons, list) -> cons; |