re PR tree-optimization/24574 (a!=0?a/10:0 is not reduced to a/10)
authorRichard Biener <rguenther@suse.de>
Wed, 13 Jul 2016 13:57:05 +0000 (13:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 13 Jul 2016 13:57:05 +0000 (13:57 +0000)
commit9737f35bba5f6dd73a19b8877ecf5b4fc37b7921
tree743755983303d6111684311ede069768ee2eb566
parent62c0ea4b14d5cc56b9a2a4c85f8d77f136434680
re PR tree-optimization/24574 (a!=0?a/10:0 is not reduced to a/10)

2016-07-13  Richard Biener  <rguenther@suse.de>

PR tree-optimization/24574
* tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
position and add shift, rotate, divison and modulo support
for left zero.
(value_replacement): Pass in argument position to absorbing_element_p.

* gcc.dg/pr24574.c: New testcase.

From-SVN: r238299
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr24574.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c