2017-09-03 Jeff Law <law@redhat.com>
commitb17ce62f45e4dad6e767dffb1e4676703dfb367e
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Sep 2017 14:00:29 +0000 (4 14:00 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Sep 2017 14:00:29 +0000 (4 14:00 +0000)
tree48e17398703864eb4a21643c5d2da00328515093
parent16414c649cbf1dbc4fa45db8f896a636840787d2
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251659 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr64910-2.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c