Re: [PATCH][2/2] Fix PR81502

2017-07-28 Thread Richard Biener
On Thu, 27 Jul 2017, Andrew Pinski wrote: > On Thu, Jul 27, 2017 at 6:50 AM, Richard Biener wrote: > > > > I am testing the following additional pattern for match.pd to fix > > PR81502 resulting in the desired optimization to > > > > bar: > > .LFB526: > > .cfi_startproc > > movl

Re: [PATCH][2/2] Fix PR81502

2017-07-27 Thread Andrew Pinski
On Thu, Jul 27, 2017 at 6:50 AM, Richard Biener wrote: > > I am testing the following additional pattern for match.pd to fix > PR81502 resulting in the desired optimization to > > bar: > .LFB526: > .cfi_startproc > movl%edi, %eax > ret > > the pattern optimizes a BIT_FI

[PATCH][2/2] Fix PR81502

2017-07-27 Thread Richard Biener
I am testing the following additional pattern for match.pd to fix PR81502 resulting in the desired optimization to bar: .LFB526: .cfi_startproc movl%edi, %eax ret the pattern optimizes a BIT_FIELD_REF on a BIT_INSERT_EXPR by either extracting from the destination or t