This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: pr26026: udiv and umod optimization
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Falk Hueffner <falk at debian dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 24 Mar 2006 18:38:24 +1030
- Subject: Re: pr26026: udiv and umod optimization
- References: <17379.30955.436649.904253@zapata.pink> <43E3835F.2090205@lu.unisi.ch> <20060205023311.GJ15321@bubble.grove.modra.org> <1139250389.3012.9.camel@localhost.localdomain> <20060209111511.GA18809@bubble.grove.modra.org> <1139499321.2874.110.camel@localhost.localdomain> <20060211055331.GD18809@bubble.grove.modra.org> <1142294192.22105.19.camel@localhost.localdomain> <20060324005314.GA16236@bubble.grove.modra.org> <87acbg1e7f.fsf@debian.org>
On Fri, Mar 24, 2006 at 08:42:12AM +0100, Falk Hueffner wrote:
> Shouldn't this optimization also be applicable to EXACT_DIV_EXPR?
Yes, but you'd need some part of the compiler to generate an
EXACT_DIV_EXPR of the form a / (b << n) to make it worth checking.
I didn't think that likely.
--
Alan Modra
IBM OzLabs - Linux Technology Centre