This is the mail archive of the gcc@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]

Re: List of simplifications we should perform


Daniel Berlin <dan@www.cgsoftware.com> writes:

If this is supposed to be C...

> Simplifications for ~ and !:
> 
>    ! ! j			j

!!j is not j, it is j?1:0. 

> Simplifications for && (with control flow)
> 
> j && 1			j

j?1:0 again

> 1 && j                  j

Same.


-Andi


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