re PR middle-end/89008 (O2 and O1 results differ for simple test)
authorRichard Biener <rguenther@suse.de>
Wed, 23 Jan 2019 14:02:13 +0000 (14:02 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 23 Jan 2019 14:02:13 +0000 (14:02 +0000)
commitef192ae1b63da0d71d0fb881d26b27db35fa2920
tree3643242b0fff4001d35b5fc6491cf50dbb305d65
parent4d0c18c601bafe272e9c5093cfbb15a875710440
re PR middle-end/89008 (O2 and O1 results differ for simple test)

2019-01-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/89008
* tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
not leave another stray operand.

* gcc.dg/torture/pr89008.c: New testcase.

From-SVN: r268186
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr89008.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c