Re: [PATCH, RFC] combine: Don't create insv insns unless HAVE_insv

2015-07-14 Thread Segher Boessenkool
On Mon, Jul 13, 2015 at 10:50:28PM -0600, Jeff Law wrote: > On 07/12/2015 07:56 AM, Segher Boessenkool wrote: > >Currently combine tries to make assignments to bitfields (of a register) > >whenever it can. If the target has no insv pattern, the result will not > >ever match (if the MD is sane at a

Re: [PATCH, RFC] combine: Don't create insv insns unless HAVE_insv

2015-07-13 Thread Jeff Law
On 07/12/2015 07:56 AM, Segher Boessenkool wrote: Currently combine tries to make assignments to bitfields (of a register) whenever it can. If the target has no insv pattern, the result will not ever match (if the MD is sane at all). Doing insv on registers generates worse code than what you ge

[PATCH, RFC] combine: Don't create insv insns unless HAVE_insv

2015-07-12 Thread Segher Boessenkool
Currently combine tries to make assignments to bitfields (of a register) whenever it can. If the target has no insv pattern, the result will not ever match (if the MD is sane at all). Doing insv on registers generates worse code than what you get if you express things directly (with and/ior), so