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 middle-end/77407] Optimize integer i / abs (i) into the sign of i


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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Oct  4 13:18:18 2016
New Revision: 240742

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

        PR middle-end/77407
        * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
        type support, mark with :C.
        (X / -X -> -1): Mark with :C.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/match.pd

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