Commit 7d7f9288 by Richard Biener Committed by Richard Biener

match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint on the conversion.

2016-10-12  Richard Biener  <rguenther@suse.de>

	* match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
	on the conversion.

From-SVN: r241022
parent 8a7c91cd
2016-10-12 Richard Biener <rguenther@suse.de> 2016-10-12 Richard Biener <rguenther@suse.de>
* match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
on the conversion.
2016-10-12 Richard Biener <rguenther@suse.de>
* tree-ssa-propagate.c * tree-ssa-propagate.c
(substitute_and_fold_dom_walker::before_dom_children): Do not (substitute_and_fold_dom_walker::before_dom_children): Do not
ignore ASSERT_EXPRs but only preserve them. ignore ASSERT_EXPRs but only preserve them.
......
...@@ -1783,10 +1783,8 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) ...@@ -1783,10 +1783,8 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
(simplify (simplify
(mult (convert1? (exact_div @0 @1)) (convert2? @2)) (mult (convert1? (exact_div @0 @1)) (convert2? @2))
/* We cannot use matching captures here, since in the case of /* We cannot use matching captures here, since in the case of
constants we don't see the second conversion. Look through constants we don't see the second conversion. */
a sign-changing or widening conversions. */ (if (operand_equal_p (@1, @2, 0))
(if (operand_equal_p (@1, @2, 0)
&& element_precision (@0) <= element_precision (type))
(convert @0))) (convert @0)))
/* Canonicalization of binary operations. */ /* Canonicalization of binary operations. */
......
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