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/24574] a!=0?a/10:0 is not reduced to a/10


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24574

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Wed Jul 13 13:57:05 2016
New Revision: 238299

URL: https://gcc.gnu.org/viewcvs?rev=238299&root=gcc&view=rev
Log:
2016-07-13  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/24574
        * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
        position and add shift, rotate, divison and modulo support
        for left zero.
        (value_replacement): Pass in argument position to absorbing_element_p.

        * gcc.dg/pr24574.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/pr24574.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-phiopt.c

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