This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/64910] tree reassociation results in poor code
- From: "law at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 Sep 2017 14:01:01 +0000
- Subject: [Bug tree-optimization/64910] tree reassociation results in poor code
- Auto-submitted: auto-generated
- References: <bug-64910-4@http.gcc.gnu.org/bugzilla/>
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