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: pr26026: udiv and umod optimization


On Fri, 2006-03-24 at 11:23 +1030, Alan Modra wrote:
> On Mon, Mar 13, 2006 at 04:56:32PM -0700, Jeffrey A Law wrote:
> > Major sigh.  I suggest we table the vrp enhancement and just rely
> > on your code in fold-const.c and the existing DIV/MOD optimization
> > support in tree-vrp.c
> 
> Here's the fold-const implementation.
> :ADDPATCH middle-end:
> 
> Bootstrapped and regression tested powerpc64-linux.  OK for mainline?
> 
> 	PR rtl-optimization/26026
> 	* fold-const.c (fold_binary): Optimize div and mod where the divisor
> 	is a known power of two shifted left a variable amount.
Approved.  Please install.

Thanks, and again, sorry for the massive delays.

jeff



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