register inhibited regardless if the value was already in the
register or not.
+ * jit/jit-insn.c (jit_insn_check_null): Emit the check only if the
+ value to check is no nint constant != 0.
+
2008-04-22 Aleksey Demakov <ademakov@gmail.com>
* configure.in: update to modern autoconf, rename to configure.ac.
{
return 0;
}
+ /* Do the check only if the value is no not Null constant */
+ if(value->is_nint_constant && (value->address != 0))
+ {
+ return 1;
+ }
func->builder->may_throw = 1;
return create_unary_note(func, JIT_OP_CHECK_NULL, value);
}