Browse Source

minor optim

Nicolas Cannasse 6 years ago
parent
commit
17c391241b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/generators/hlopt.ml

+ 4 - 0
src/generators/hlopt.ml

@@ -646,6 +646,10 @@ let optimize dump get_str (f:fundecl) =
 				let s = state.(r) in
 				do_write r;
 				s.rnullcheck <- true;
+			| OToVirtual (v,o) ->
+				do_read o;
+				do_write v;
+				state.(v).rnullcheck <- state.(o).rnullcheck
 			| _ ->
 				opcode_fx (fun r read ->
 					if read then do_read r else do_write r