diff options
author | Björn Gustavsson <[email protected]> | 2019-04-24 07:22:08 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2019-05-23 12:26:32 +0200 |
commit | 904dfa9fd76b1dda1f8565219f3fe6c386f8aa6c (patch) | |
tree | 05fe8c91a5bbabba5964510e8ea220af59a6096f /lib/compiler/src/beam_ssa.erl | |
parent | 50a2d448e775668a5cbd835c9ff5eae6058f8739 (diff) | |
download | otp-904dfa9fd76b1dda1f8565219f3fe6c386f8aa6c.tar.gz otp-904dfa9fd76b1dda1f8565219f3fe6c386f8aa6c.tar.bz2 otp-904dfa9fd76b1dda1f8565219f3fe6c386f8aa6c.zip |
Optimize is_function/{1,2} calls
Remove is_function/1,2 tests if that are known to never fail.
Diffstat (limited to 'lib/compiler/src/beam_ssa.erl')
-rw-r--r-- | lib/compiler/src/beam_ssa.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_ssa.erl b/lib/compiler/src/beam_ssa.erl index e8b77e382f..831e6489a9 100644 --- a/lib/compiler/src/beam_ssa.erl +++ b/lib/compiler/src/beam_ssa.erl @@ -79,7 +79,7 @@ -type var_base() :: atom() | non_neg_integer(). -type literal_value() :: atom() | integer() | float() | list() | - nil() | tuple() | map() | binary(). + nil() | tuple() | map() | binary() | fun(). -type op() :: {'bif',atom()} | {'float',float_op()} | prim_op() | cg_prim_op(). -type anno() :: #{atom() := any()}. |