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

reichelt@igpm.rwth-aachen.de reichelt@igpm.rwth-aachen.de
Tue Jan 14 14:58:00 GMT 2003


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



More information about the Gcc-bugs mailing list