This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [patch] for PR18942


On Sun, 19 Dec 2004, Zdenek Dvorak wrote:
> > Then finally this transformation can also be generalized to handle the
> > MINUS case as well, i.e. "(x - C1) == C2" -> "x == (C2 + C1)".
>
> I thought we canonicalize (minus x cst) to (plus x (-cst))? Although I
> cannot find it anywhere just now.

We do this canonicalization for CONST_INT and CONST_DOUBLE, I'm just
not sure that we also do it for other forms of constants such as CONST,
SYMBOL_REF, LABEL_REF, etc...

Roger
--


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