This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: associative law in combine
- To: jh at suse dot cz (Jan Hubicka)
- Subject: Re: associative law in combine
- From: Joern Rennecke <amylaar at redhat dot com>
- Date: Tue, 17 Jul 2001 23:59:34 +0100 (BST)
- Cc: toon at moene dot indiv dot nluug dot nl (Toon Moene), gcc at gcc dot gnu dot org
>
> > Jan Hubicka wrote:
> >
> > > > Sure, but not in fold-CONST.c :-)
> > > OK, what is the apropriate place for that then? We simply need it to be done
> > > at tree level. It is FOLD-const after all :)
> >
> > Unfortunately, I don't know.
> >
> > Perhaps just asking it on the list is best.
> OK, so to speak loud - where is the proper place to convert
> a/b/c to a/(b*c) at tree level. fold-const or some other?
Only if b and c are constants, the operations are floating point, and
b can be multiplied with c without loss of precision or overflow.
Or if b and/or c is a power of two, and b can be multiplied with c without
overflow.