Skip to content

Commit

Permalink
Reduce max inlining depths at -O2 and -O3 (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshinwell committed Oct 29, 2021
1 parent c9bfd3c commit 50fa165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocaml/utils/clflags.ml
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ module Flambda2 = struct
}

let o2_arguments = {
max_depth = Some 10;
max_depth = Some 2;
call_cost = Some (2.0 *. Default.call_cost);
alloc_cost = Some (2.0 *. Default.alloc_cost);
prim_cost = Some (2.0 *. Default.prim_cost);
Expand All @@ -619,7 +619,7 @@ module Flambda2 = struct
}

let o3_arguments = {
max_depth = Some 20;
max_depth = Some 3;
call_cost = Some (3.0 *. Default.call_cost);
alloc_cost = Some (3.0 *. Default.alloc_cost);
prim_cost = Some (3.0 *. Default.prim_cost);
Expand Down

0 comments on commit 50fa165

Please sign in to comment.