Skip to content

Commit d2f9d2f

Browse files
committed
fixup! Effects: partial CPS transform
1 parent 1998e9e commit d2f9d2f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

compiler/lib/global_flow.ml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ blocks, to track functions across modules.
2525

2626
open! Stdlib
2727

28-
let debug = Debug.find "flow2"
28+
let debug = Debug.find "global-flow"
2929

3030
let times = Debug.find "times"
3131

@@ -133,11 +133,9 @@ let rec arg_deps st ?ignore params args =
133133
| x :: params, y :: args ->
134134
(* This is to deal with the [else] clause of a conditional,
135135
where we know that the value of the tested variable is 0. *)
136-
if not
137-
(match ignore with
138-
| Some y' -> Var.equal y y'
139-
| _ -> false)
140-
then add_assign_def st x y;
136+
(match ignore with
137+
| Some y' when Var.equal y y' -> ()
138+
| _ -> add_assign_def st x y);
141139
arg_deps st params args
142140
| _ -> ()
143141

@@ -566,7 +564,7 @@ let f p =
566564
Var.ISet.iter
567565
(fun x ->
568566
let s = Var.Tbl.get approximation x in
569-
if true || not (Poly.( = ) s Domain.bot)
567+
if not (Domain.equal s Domain.bot)
570568
then
571569
Format.eprintf
572570
"%a: %a@."

0 commit comments

Comments
 (0)