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] More TRUNC_MOD_EXPR folding


On Fri, 2005-06-17 at 17:07 -0400, James A. Morrison wrote:
>  Hi,
> 
>   This patch allows signed typed TRUNC_MOD_EXPRs to be folded to AND if the
> value is known to be positive.  E.g. abs(x) % 8 -> abs(x) & 7;
> 
>   Bootstrapped and regtested on ia64-linux with no new regressions, ok for
> mainline?
Umm, it seems to me this ought to be caught by the recent changes
I made to tree-vrp.c.  Is there some pressing reason to do this
transformation in multiple places?

Jeff



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