This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/64910] tree reassociation results in poor code


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]