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"
- From: Roger Sayle <roger at eyesopen dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 18 May 2002 08:49:56 -0600 (MDT)
- Subject: 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.
Roger
--