Re: [PATCH 04/15] rs6000: Implement set_const_data infrastructure

2015-08-12 Thread Segher Boessenkool
Hi Richard, You wanted us to read this file... On Tue, Aug 11, 2015 at 06:11:33PM -0700, Richard Henderson wrote: > + -- The fallback generation for the most complex word_mode constants. > + The receipe built will be the full MAX_COST insns, as we will ^-- typo. Segher

[PATCH 04/15] rs6000: Implement set_const_data infrastructure

2015-08-11 Thread Richard Henderson
Implements basic hashing and minimal cost search, but no real new optimizations on the constants. That said, there is one code generation change implied by the searching: we'll find equal or more efficient alternatives to zero-extending a 32-bit unsigned constant with bit 31 set. E.g.