Skip to content

Commit

Permalink
CR: Remove duplicate instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Dec 4, 2024
1 parent 9962764 commit fdb576a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compiler/lib/lambda_lifting_simple.ml
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,8 @@ and rewrite_body
in
let tuple = Var.fresh_n "tuple" in
let rev_decl =
Let (tuple, Apply { f = f_tuple; args = List.map ~f:fst s; exact = true })
:: List.mapi current_contiguous ~f:(fun i (f, _, _, _) ->
Let (f, Field (tuple, i, Non_float)))
List.mapi current_contiguous ~f:(fun i (f, _, _, _) ->
Let (f, Field (tuple, i, Non_float)))
in
( (program, functions, lifters)
, rev_decl
Expand Down

0 comments on commit fdb576a

Please sign in to comment.