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: Fix Sparc shift optimization


> 
> Jakub asked me to regression test this fix for him on
> the mainline and I have done so.
> 
> The problem is that our attempt to emit add for shifts by
> constant 1 wasn't done correctly.  Instead of using seperate
> patterns, just handle it with the normal shift pattern, computing the
> attributes using a new const1_operand predicate code.

I think even cleaner approach can be to add post reload splitters to turn
shifts into adds as i386 does.
This avoids some of the attribute hackery around.

Honza


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