Skip to content

Commit

Permalink
simplified code
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanburen committed Dec 12, 2024
1 parent c2deb71 commit a490e54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/cmm_helpers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1303,9 +1303,7 @@ let rec low_bits ~bits dbg x =
[Cop (Clsl, [x; Cconst_int (left, _)], _); Cconst_int (right, _)],
_ )
when 0 <= right && right <= left && left <= unused_bits ->
if left = right
then low_bits ~bits dbg x
else lsl_const x (left - right) dbg
low_bits ~bits dbg (lsl_const x (left - right) dbg)
| x -> (
match get_const_bitmask x with
| Some (x, bitmask) when does_mask_ignore_low_bits bitmask ->
Expand Down

0 comments on commit a490e54

Please sign in to comment.