[Bug tree-optimization/64910] tree reassociation results in poor code
law at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 4 14:01:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64910
--- Comment #3 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Mon Sep 4 14:00:29 2017
New Revision: 251659
URL: https://gcc.gnu.org/viewcvs?rev=251659&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr64910-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-reassoc.c
More information about the Gcc-bugs
mailing list