aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_flatten.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-01-09 17:34:33 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-01-09 17:34:33 +0100
commit757db63a6e77733bcb757c81ce6d453c3e3718b5 (patch)
tree0cfcf20f004b58512dc58cc032addc90a525dc1c /lib/compiler/src/beam_flatten.erl
parent4d169378726394b76bf059ed84cc1b1528ef3ea0 (diff)
downloadotp-757db63a6e77733bcb757c81ce6d453c3e3718b5.tar.gz
otp-757db63a6e77733bcb757c81ce6d453c3e3718b5.tar.bz2
otp-757db63a6e77733bcb757c81ce6d453c3e3718b5.zip
compiler: Remove dead code in beam_flatten
The normalization in beam_flatten can never be reached for get_map_elements since it is always handled in the mandatory beam_split pass.
Diffstat (limited to 'lib/compiler/src/beam_flatten.erl')
-rw-r--r--lib/compiler/src/beam_flatten.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/compiler/src/beam_flatten.erl b/lib/compiler/src/beam_flatten.erl
index 05d067dc48..54e06df995 100644
--- a/lib/compiler/src/beam_flatten.erl
+++ b/lib/compiler/src/beam_flatten.erl
@@ -63,9 +63,7 @@ norm({set,[],[S,D],{set_tuple_element,I}}) -> {set_tuple_element,S,D,I};
norm({set,[D1,D2],[S],get_list}) -> {get_list,S,D1,D2};
norm({set,[D],[S|Puts],{alloc,R,{put_map,Op,F}}}) ->
{put_map,F,Op,S,D,R,{list,Puts}};
-norm({set,Ds,[S|Ss],{get_map_elements,F}}) ->
- Gets = beam_utils:joineven(Ss,Ds),
- {get_map_elements,F,S,{list,Gets}};
+%% get_map_elements is always handled in beam_split (moved out of block)
norm({set,[],[],remove_message}) -> remove_message;
norm({set,[],[],fclearerror}) -> fclearerror;
norm({set,[],[],fcheckerror}) -> {fcheckerror,{f,0}}.