re PR tree-optimization/64910 (tree reassociation results in poor code)
authorJeff Law <law@redhat.com>
Mon, 4 Sep 2017 14:00:29 +0000 (08:00 -0600)
committerJeff Law <law@gcc.gnu.org>
Mon, 4 Sep 2017 14:00:29 +0000 (08:00 -0600)
commit8713d0f1c46f81107ea61781e2f4dc918d0fb67d
tree48e17398703864eb4a21643c5d2da00328515093
parent8d2b48ae9f3e1e70dfe2aaf32abb9e74594b8875
re PR tree-optimization/64910 (tree reassociation results in poor code)

2017-09-03  Jeff Law  <law@redhat.com>

PR tree-optimization/64910
* tree-ssa-reassoc.c (reassociate_bb): For bitwise binary ops,
swap the first and last operand if the last is a constant.

PR tree-optimization/64910
* gcc.dg/tree-ssa/pr64910-2.c: New test.

From-SVN: r251659
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr64910-2.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c