re PR tree-optimization/65216 (wrong code at -O3 on x86_64-linux-gnu)
authorJakub Jelinek <jakub@redhat.com>
Thu, 26 Feb 2015 21:03:14 +0000 (22:03 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 26 Feb 2015 21:03:14 +0000 (22:03 +0100)
commitd288c0abe62b0ea097852174651c5b87c2ac7800
treeea8d3e047154e05c0b011c78cf24dced1dc536c4
parent5c2766c1a7a6ecf866d4aaa72e2e2a497fcc7995
re PR tree-optimization/65216 (wrong code at -O3 on x86_64-linux-gnu)

PR tree-optimization/65216
* tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
new stmt and new SSA_NAME for lhs whenever the arguments have
changed and weren't just swapped.  Fix comment typo.

* gcc.c-torture/execute/pr65216.c: New test.

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