re PR tree-optimization/81555 (Wrong code at -O1)
authorJakub Jelinek <jakub@redhat.com>
Thu, 27 Jul 2017 08:49:16 +0000 (10:49 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 27 Jul 2017 08:49:16 +0000 (10:49 +0200)
commit7d25ac209de8262e39e5551585da5094a4c5c317
tree59aeb2fb78941197a712558842d5f67b1da78303
parent036ea39917b0ef6f07a7c3c3c06002c73fd238f5
re PR tree-optimization/81555 (Wrong code at -O1)

PR tree-optimization/81555
PR tree-optimization/81556
* tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
if true, force CHANGED for the recursive invocation.
(reassociate_bb): Remember original length of ops array, pass
len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.

* gcc.c-torture/execute/pr81555.c: New test.
* gcc.c-torture/execute/pr81556.c: New test.

From-SVN: r250609
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr81555.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr81556.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c