This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Optimize "a || b" into "(a | b) != 0"
>
>
> > Hmm, this is interesting. How long is GCC doing this transfromation?
> > 2.95.3 certainly not at least in my simple testcase.
>
> Don't forget "-mbranch-cost=2" on IA-32. As you've hinted previously,
> this transformation should be/is dependent upon the target's branch cost.
> To answer your question, "cvs annotate" reports 11th August 1997, but
> the actual code could be much older.
Thanks for enlightening me. I never noticed this code previously. I have
nothing against your patch then. :)
Honza
>
> Roger
> --