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]

Re: optimization/3995: i386 optimisation: joining tests


Synopsis: i386 optimisation: joining tests

State-Changed-From-To: analyzed->closed
State-Changed-By: sayle
State-Changed-When: Mon May  6 20:40:16 2002
State-Changed-Why:
    This problem has been fixed on mainline by the recent patch:
    
    2002-05-06  Roger Sayle  <roger@eyesopen.com>
    
            * fold-const.c (sign_bit_p): New function.
            (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
            (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
            Reapply fold when converting (A & C) == C into (A & C) != 0.
    
    We now join the two tests together and generate better code.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3995


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