aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/beam_jump.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-08-05 19:19:56 +0200
committerBjörn Gustavsson <[email protected]>2015-08-21 15:56:14 +0200
commit30cc5c902d9e653d48452a7f84fcd664cfc3f0a8 (patch)
treeed5fdd76bb7ce60315e5614a09df4f5903021085 /lib/compiler/src/beam_jump.erl
parent3640e5c89bda0ca45b3320e8a00efb48b9d9f531 (diff)
downloadotp-30cc5c902d9e653d48452a7f84fcd664cfc3f0a8.tar.gz
otp-30cc5c902d9e653d48452a7f84fcd664cfc3f0a8.tar.bz2
otp-30cc5c902d9e653d48452a7f84fcd664cfc3f0a8.zip
Put 'try' in blocks to optimize allocation instructions
Put 'try' instructions inside block to improve the optimization of allocation instructions. Currently, the compiler only looks at initialization of y registers inside blocks when determining which y registers that will be "naturally" initialized.
Diffstat (limited to 'lib/compiler/src/beam_jump.erl')
-rw-r--r--lib/compiler/src/beam_jump.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_jump.erl b/lib/compiler/src/beam_jump.erl
index 5e58e0f6ac..3b6eb19fe8 100644
--- a/lib/compiler/src/beam_jump.erl
+++ b/lib/compiler/src/beam_jump.erl
@@ -495,7 +495,7 @@ is_label_used_in_block({set,_,_,Info}, Lbl) ->
{alloc,_,{gc_bif,_,{f,F}}} -> F =:= Lbl;
{alloc,_,{put_map,_,{f,F}}} -> F =:= Lbl;
{get_map_elements,{f,F}} -> F =:= Lbl;
- {'catch',{f,F}} -> F =:= Lbl;
+ {try_catch,_,{f,F}} -> F =:= Lbl;
{alloc,_,_} -> false;
{put_tuple,_} -> false;
{get_tuple_element,_} -> false;