aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-11-03 07:12:10 +0100
committerBjörn Gustavsson <[email protected]>2018-11-18 07:10:03 +0100
commit0009fc378109f870472ded41d29c5d81febd5990 (patch)
treea0688adaec6f2f56f86525971bc4b6432b465cef /lib
parent5873f86728d945be654e31d33fd72a9ecd9c6eaa (diff)
downloadotp-0009fc378109f870472ded41d29c5d81febd5990.tar.gz
otp-0009fc378109f870472ded41d29c5d81febd5990.tar.bz2
otp-0009fc378109f870472ded41d29c5d81febd5990.zip
Add get_map_element to beam_ssa:no_side_effect/1
The `get_map_element` instruction has no side effects, and should be removed if its value is not used.
Diffstat (limited to 'lib')
-rw-r--r--lib/compiler/src/beam_ssa.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_ssa.erl b/lib/compiler/src/beam_ssa.erl
index c5e23d2ae0..b491e340b7 100644
--- a/lib/compiler/src/beam_ssa.erl
+++ b/lib/compiler/src/beam_ssa.erl
@@ -194,6 +194,7 @@ no_side_effect(#b_set{op=Op}) ->
extract -> true;
get_hd -> true;
get_tl -> true;
+ get_map_element -> true;
get_tuple_element -> true;
has_map_field -> true;
is_nonempty_list -> true;