summaryrefslogtreecommitdiff
path: root/middle_end/inlining_cost.ml
diff options
context:
space:
mode:
authorMark Shinwell <mshinwell@gmail.com>2016-02-26 16:15:06 +0000
committerMark Shinwell <mshinwell@gmail.com>2016-02-26 16:18:04 +0000
commit5dced42768bde28df48c3169d6db7c3bfc3c0b63 (patch)
treec28bfeac930eff9473b753f18f5250c6b96f396e /middle_end/inlining_cost.ml
parent8abcf62783b7cb4ab5db9fe90809021c6dba415f (diff)
downloadocaml-5dced42768bde28df48c3169d6db7c3bfc3c0b63.tar.gz
Merge pull request #480 from mshinwell/flambda_unbox-closures
GPR#480: Flambda fix: try to make Unbox_closures behave more reasonably
Diffstat (limited to 'middle_end/inlining_cost.ml')
-rw-r--r--middle_end/inlining_cost.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/middle_end/inlining_cost.ml b/middle_end/inlining_cost.ml
index 0ee05231e4..c471cac74b 100644
--- a/middle_end/inlining_cost.ml
+++ b/middle_end/inlining_cost.ml
@@ -237,6 +237,7 @@ module Benefit = struct
let remove_call t = { t with remove_call = t.remove_call + 1; }
let remove_alloc t = { t with remove_alloc = t.remove_alloc + 1; }
let remove_prim t = { t with remove_prim = t.remove_prim + 1; }
+ let remove_prims t n = { t with remove_prim = t.remove_prim + n; }
let remove_branch t = { t with remove_branch = t.remove_branch + 1; }
let direct_call_of_indirect t =
{ t with direct_call_of_indirect = t.direct_call_of_indirect + 1; }