Skip to content

Commit 50fa165

Browse files
committed
Reduce max inlining depths at -O2 and -O3 (#334)
1 parent c9bfd3c commit 50fa165

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocaml/utils/clflags.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ module Flambda2 = struct
606606
}
607607

608608
let o2_arguments = {
609-
max_depth = Some 10;
609+
max_depth = Some 2;
610610
call_cost = Some (2.0 *. Default.call_cost);
611611
alloc_cost = Some (2.0 *. Default.alloc_cost);
612612
prim_cost = Some (2.0 *. Default.prim_cost);
@@ -619,7 +619,7 @@ module Flambda2 = struct
619619
}
620620

621621
let o3_arguments = {
622-
max_depth = Some 20;
622+
max_depth = Some 3;
623623
call_cost = Some (3.0 *. Default.call_cost);
624624
alloc_cost = Some (3.0 *. Default.alloc_cost);
625625
prim_cost = Some (3.0 *. Default.prim_cost);

0 commit comments

Comments
 (0)