Re: [RFA] Minor optimization of variable bit testing

2021-11-08 Thread Jeff Law via Gcc-patches
On 11/3/2021 2:15 AM, Richard Biener via Gcc-patches wrote: On Tue, Nov 2, 2021 at 4:53 PM Jeff Law wrote: I was wandering spec chasing down instances where we should be generating bit-test, bit-set and bit-clear types of instructions for our target when I ran across a generic missed optimiz

Re: [RFA] Minor optimization of variable bit testing

2021-11-05 Thread Richard Biener via Gcc-patches
On Thu, Nov 4, 2021 at 4:09 PM Jeff Law wrote: > > > > On 11/3/2021 2:15 AM, Richard Biener via Gcc-patches wrote: > > On Tue, Nov 2, 2021 at 4:53 PM Jeff Law wrote: > >> > >> I was wandering spec chasing down instances where we should be > >> generating bit-test, bit-set and bit-clear types of i

Re: [RFA] Minor optimization of variable bit testing

2021-11-04 Thread Jeff Law via Gcc-patches
On 11/3/2021 2:15 AM, Richard Biener via Gcc-patches wrote: On Tue, Nov 2, 2021 at 4:53 PM Jeff Law wrote: I was wandering spec chasing down instances where we should be generating bit-test, bit-set and bit-clear types of instructions for our target when I ran across a generic missed optimi

Re: [RFA] Minor optimization of variable bit testing

2021-11-03 Thread Richard Biener via Gcc-patches
On Tue, Nov 2, 2021 at 4:53 PM Jeff Law wrote: > > > I was wandering spec chasing down instances where we should be > generating bit-test, bit-set and bit-clear types of instructions for our > target when I ran across a generic missed optimization in this space. > > > (((1 << N) & C) != 0) -> (N