Actually do what I meant to in the inline threshold. Don't drink and code. Cut rustc by 50kb.

This commit is contained in:
Graydon Hoare 2010-10-09 01:02:13 -07:00
parent 967a6f861d
commit a441865f6e

View file

@ -281,14 +281,14 @@ let trans_visitor
in
let should_inline_structure_helpers t =
let n = 2 in
let n = 3 in
match t with
Ast.TY_tag ttag ->
get_n_tag_tups cx ttag > n
get_n_tag_tups cx ttag < n
| Ast.TY_rec elts ->
Array.length elts > 3
Array.length elts < n
| Ast.TY_tup elts ->
Array.length elts > 3
Array.length elts < n
| _ -> false
in