This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Improved SAVE_EXPR handling in operand_equal_p
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: roger at eyesopen dot com, rth at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 8 Sep 2003 23:49:21 -0400 (EDT)
- Subject: Re: [PATCH] Improved SAVE_EXPR handling in operand_equal_p
- References: <Pine.LNX.4.44.0309081204320.17007-100000@www.eyesopen.com>
> From: Roger Sayle <roger@eyesopen.com>
>
> Kaveh, is it possible to only enable the "cabs(z) != cabs(z)" tests
> at optimization levels -O2 and above? Sorry for the inconvenience.
We can wrap the cabs test with __OPTIMIZE__ which only checks for -O1
and above. Fortunately that seems to be sufficient at least on
sparc-sun-solaris2.
I'll do that if you can please explain to me why this works with
optimization and not without it. (And why we can rely on that being
the case.)
Thanks,
--Kaveh
--
Kaveh R. Ghazi ghazi@caip.rutgers.edu