Commit 075cdac3 by Aldy Hernandez Committed by Aldy Hernandez

tree-vrp (extract_range_from_binary_expr_1): Treat all divisions by zero as VR_UNDEFINED.

	* tree-vrp (extract_range_from_binary_expr_1): Treat all divisions
	by zero as VR_UNDEFINED.

From-SVN: r264203
parent a93a92aa
2018-09-11 Aldy Hernandez <aldyh@redhat.com>
* tree-vrp (extract_range_from_binary_expr_1): Treat all divisions
by zero as VR_UNDEFINED.
2018-09-10 Uros Bizjak <ubizjak@gmail.com> 2018-09-10 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (<sincos>xf2): Rename from *<sincos>xf2_i387. * config/i386/i386.md (<sincos>xf2): Rename from *<sincos>xf2_i387.
......
...@@ -1601,12 +1601,7 @@ extract_range_from_binary_expr_1 (value_range *vr, ...@@ -1601,12 +1601,7 @@ extract_range_from_binary_expr_1 (value_range *vr,
/* Special case explicit division by zero as undefined. */ /* Special case explicit division by zero as undefined. */
if (range_is_null (&vr1)) if (range_is_null (&vr1))
{ {
/* However, we must not eliminate a division by zero if set_value_range_to_undefined (vr);
flag_non_call_exceptions. */
if (cfun->can_throw_non_call_exceptions)
set_value_range_to_varying (vr);
else
set_value_range_to_undefined (vr);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment