Skip to content

Commit

Permalink
Fix the logic of fast => not Reduce_code_size
Browse files Browse the repository at this point in the history
  • Loading branch information
chambart committed Mar 5, 2018
1 parent 5f210a5 commit feb7538
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions asmcomp/cmmgen.ml
Expand Up @@ -2828,9 +2828,9 @@ let transl_function f =
transl env body in
let fun_codegen_options =
if !Clflags.optimize_for_speed then
[ Reduce_code_size ]
else
[]
else
[ Reduce_code_size ]
in
Cfunction {fun_name = f.label;
fun_args = List.map (fun id -> (id, typ_val)) f.params;
Expand Down
2 changes: 1 addition & 1 deletion asmcomp/linearize.ml
Expand Up @@ -311,7 +311,7 @@ let rec linear i n =
let fundecl f =
{ fun_name = f.Mach.fun_name;
fun_body = linear f.Mach.fun_body end_instr;
fun_fast = List.mem Cmm.Reduce_code_size f.Mach.fun_codegen_options;
fun_fast = not (List.mem Cmm.Reduce_code_size f.Mach.fun_codegen_options);
fun_dbg = f.Mach.fun_dbg;
fun_spacetime_shape = f.Mach.fun_spacetime_shape;
}

0 comments on commit feb7538

Please sign in to comment.