Skip to content

Commit 43c14d6

Browse files
authored
flambda-backend: Re-enable -flambda2-join-points (#374)
1 parent 5cd2520 commit 43c14d6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

driver/main_args.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -934,15 +934,15 @@ module Flambda2 = Clflags.Flambda2
934934

935935
let mk_flambda2_join_points f =
936936
"-flambda2-join-points", Arg.Unit f,
937-
Printf.sprintf "Propagate information from incoming edges at a join\n\
937+
Printf.sprintf "Propagate information from all incoming edges to a join\n\
938938
\ point%s (Flambda 2 only)"
939939
(format_default Flambda2.Default.join_points)
940940
;;
941941

942942
let mk_no_flambda2_join_points f =
943943
"-no-flambda2-join-points", Arg.Unit f,
944-
Printf.sprintf " Propagate information only from the fork point to\n\
945-
\ a join point%s (Flambda 2 only)"
944+
Printf.sprintf " Propagate information to a join point only if there are\n\
945+
\ zero or one incoming edge(s)%s (Flambda 2 only)"
946946
(format_not_default Flambda2.Default.join_points)
947947
;;
948948

utils/clflags.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ end
462462
module Flambda2 = struct
463463
module Default = struct
464464
let classic_mode = false
465-
let join_points = true
465+
let join_points = false
466466
let unbox_along_intra_function_control_flow = true
467467
let backend_cse_at_toplevel = false
468468
let cse_depth = 2
@@ -657,7 +657,7 @@ module Flambda2 = struct
657657

658658
let o2_flags () =
659659
cse_depth := 2;
660-
join_points := true;
660+
join_points := false;
661661
unbox_along_intra_function_control_flow := true;
662662
Expert.fallback_inlining_heuristic := false;
663663
backend_cse_at_toplevel := false

0 commit comments

Comments
 (0)