Skip to content

Commit

Permalink
Enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Nov 15, 2024
1 parent 8dd7a7b commit 6c3c9db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/compiler/src/beam_ssa_opt.erl
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,16 @@ merge_tuple_update_1([], Tuple) ->
%%% Splitting before call and make_fun instructions gives more opportunities
%%% for sinking get_tuple_element instructions.
%%%
%%% Splitting before new_try_tag gives more opportunities for optimizing
%%% try/catch.
%%%

ssa_opt_split_blocks({#opt_st{ssa=Blocks0,cnt=Count0}=St, FuncDb}) ->
P = fun(#b_set{op={bif,element}}) -> true;
(#b_set{op=call}) -> true;
(#b_set{op=bs_init_writable}) -> true;
(#b_set{op=make_fun}) -> true;
(#b_set{op=new_try_tag}) -> true;
(_) -> false
end,
RPO = beam_ssa:rpo(Blocks0),
Expand Down

0 comments on commit 6c3c9db

Please sign in to comment.