Skip to content

Commit e328eae

Browse files
committed
fix
1 parent 70b65b3 commit e328eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/cmm_helpers.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ let rec lsr_int c1 c2 dbg =
395395
Cop (Clsr, [ignore_low_bit_int c1; c2], dbg)
396396
| _ -> Cop (Clsr, [c1; c2], dbg)
397397

398-
and asr_int c1 c2 dbg : expression =
398+
and asr_int c1 c2 dbg =
399399
match c1, c2 with
400400
| c1, Cconst_int (0, _) -> c1
401401
| c1, Cconst_int (n, _) when n > 0 -> (
@@ -427,7 +427,7 @@ and lsl_int c1 c2 dbg =
427427
add_const (lsl_int c1 c2 dbg) (n1 lsl n2) dbg
428428
| Cop (Cor, [c1; Cconst_int (n1, _)], _), Cconst_int (n2, _)
429429
when Misc.no_overflow_lsl n1 n2 ->
430-
add_const (lsl_int c1 c2 dbg) (n1 lsl n2) dbg
430+
Cop (Cor, [lsl_int c1 c2 dbg; Cconst_int (n1 lsl n2, dbg)], dbg)
431431
| Cop (Clsl, [x; (Cconst_int _ as y)], z), c2 ->
432432
(* prefer putting the constant shift on the outside to help enable further
433433
peephole optimizations *)

0 commit comments

Comments
 (0)