This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] fold-const.c: Don't transform X & C into (X >> C') & 1in fold_binary.
On Wed, 2005-04-20 at 15:46 -0700, Richard Henderson wrote:
> On Wed, Apr 20, 2005 at 06:04:56PM -0400, Kazu Hirata wrote:
> > If you like, I'd be happy to teach fold_binary to transform
> > (a >> 2) & 1 != 0 back to a & 4 != 0 for you
>
> Having a canonical representation wouldn't be a bad thing.
That's probably the single biggest thing I'd like to see out
of this work -- a canonical form for expressing bit tests
and hopefully some simplifications of the expanders and
maybe RTL optimizers as a result.
Jeff