diff options
author | Richard Biener <rguenther@suse.de> | 2019-01-23 14:02:13 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2019-01-23 14:02:13 +0000 |
commit | ef192ae1b63da0d71d0fb881d26b27db35fa2920 (patch) | |
tree | 3643242b0fff4001d35b5fc6491cf50dbb305d65 /gcc/tree-ssa-reassoc.c | |
parent | 4d0c18c601bafe272e9c5093cfbb15a875710440 (diff) | |
download | gcc-ef192ae1b63da0d71d0fb881d26b27db35fa2920.zip gcc-ef192ae1b63da0d71d0fb881d26b27db35fa2920.tar.gz gcc-ef192ae1b63da0d71d0fb881d26b27db35fa2920.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r-- | gcc/tree-ssa-reassoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 07ff42e..e1c4dfe 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -1015,7 +1015,7 @@ eliminate_using_constants (enum tree_code opcode, fprintf (dump_file, "Found * 0, removing all other ops\n"); reassociate_stats.ops_eliminated += ops->length () - 1; - ops->truncate (1); + ops->truncate (0); ops->quick_push (oelast); return; } |