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 rtl-optimization/45617] optimize bit shift+compare at RTL level



------- Comment #2 from jakub at gcc dot gnu dot org  2010-09-13 21:00 -------
Subject: Bug 45617

Author: jakub
Date: Mon Sep 13 21:00:03 2010
New Revision: 164257

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164257
Log:
        PR rtl-optimization/45617
        * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
        even if low N bits of X aren't known to be zero.

        * gcc.target/i386/pr45617.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/i386/pr45617.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45617


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