Skip to content

Commit 32ec58a

Browse files
authored
flambda-backend: Bypass Simplify (#162)
1 parent bd4ce4a commit 32ec58a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

utils/clflags.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ end
459459

460460
module Flambda2 = struct
461461
module Default = struct
462+
let classic_mode = false
462463
let join_points = true
463464
let unbox_along_intra_function_control_flow = true
464465
let backend_cse_at_toplevel = false
@@ -467,6 +468,7 @@ module Flambda2 = struct
467468
let unicode = true
468469
end
469470

471+
let classic_mode = ref Default.classic_mode
470472
let join_points = ref Default.join_points
471473
let unbox_along_intra_function_control_flow =
472474
ref Default.unbox_along_intra_function_control_flow
@@ -628,6 +630,7 @@ module Flambda2 = struct
628630
end
629631

630632
let oclassic_flags () =
633+
classic_mode := true;
631634
cse_depth := 2;
632635
join_points := false;
633636
unbox_along_intra_function_control_flow := true;

utils/clflags.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ val insn_sched_default : bool
216216

217217
module Flambda2 : sig
218218
module Default : sig
219+
val classic_mode : bool
219220
val join_points : bool
220221
val unbox_along_intra_function_control_flow : bool
221222
val backend_cse_at_toplevel : bool
@@ -225,6 +226,7 @@ module Flambda2 : sig
225226
val unicode : bool
226227
end
227228

229+
val classic_mode : bool ref
228230
val join_points : bool ref
229231
val unbox_along_intra_function_control_flow : bool ref
230232
val backend_cse_at_toplevel : bool ref

0 commit comments

Comments
 (0)