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/7325: Test "if ( a && b )" where a, b are 1-bit fields, could be better


Synopsis: Test "if ( a && b )" where a, b are 1-bit fields, could be better

State-Changed-From-To: analyzed->closed
State-Changed-By: reichelt
State-Changed-When: Tue Jan 14 06:46:51 2003
State-Changed-Why:
    There seems to be not much room for improvement, given the reply below:
    
    > Yeah :( I had this exact same conversation with the last guy the
    > bug was assigned to.  I wish I'd kept my notes from then.
    > 
    > Let's see, we were trying to determine if the test
    > 
    >        (*foo & 3) == 3
    > 
    > could be optimized.  At the time, I think we concluded that translating to
    > 
    >        (~*foo & 3) == 0
    > 
    > which was sometimes, but usually not, an improvement.
    > 
    >        -ed falk

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


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