This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Simple optimizations missing
- To: grahams at redhat dot com, pfk at fuchs dot offl dot uni-jena dot de
- Subject: Re: Simple optimizations missing
- From: dewar at gnat dot com
- Date: Sun, 9 Sep 2001 10:46:06 -0400 (EDT)
- Cc: gcc at gcc dot gnu dot org, jh at suse dot cz
>>Only if you can deduce that x != 0
Is that true? I thought that division by zero was undefined, in which case
it is perfectly fine to optimize 0 / 0 to 1 (or to 0 or to 42)