Skip to content

Commit b1ae6ff

Browse files
committed
Minor fixes
1 parent 279f524 commit b1ae6ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/compiler/src/beam_ssa_opt.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,19 +563,19 @@ ssa_opt_split_blocks({#opt_st{ssa=Blocks0,cnt=Count0}=St, FuncDb}) ->
563563

564564
%%%
565565
%%% BIF is_integer/3 tests whether a number is between a given range.
566-
%%% When the range is constant,rewrite it into 3 BIFs: is_integer/1 and two
566+
%%% When the range is constant, rewrite it into 3 BIFs: is_integer/1 and two
567567
%%% =<'s to enable later optimization.
568-
%%%
568+
%%%
569569
ssa_opt_is_between({#opt_st{ssa=Blocks0,cnt=Count0}=St, FuncDb}) ->
570570
{Blocks1, Count1} = ssa_opt_is_between_1(Blocks0, Count0),
571571
{St#opt_st{ssa=Blocks1,cnt=Count1}, FuncDb}.
572572

573573
ssa_opt_is_between_1([{L,#b_blk{}=B}=Blk0|Ls0], Count0) ->
574574
case B of
575575
#b_blk{is=[#b_set{op={bif,is_integer},dst=Bool1,
576-
args=[_,#b_literal{val=Min},
576+
args=[_,#b_literal{val=Min},
577577
#b_literal{val=Max}]}],
578-
last=#b_br{bool=Bool1}}=Blk when is_integer(Min),
578+
last=#b_br{bool=Bool1}}=Blk when is_integer(Min),
579579
is_integer(Max),
580580
Min =< Max ->
581581
{Blk1, Count1} = is_between_rewrite(Count0, L, Blk),

0 commit comments

Comments
 (0)