[PATCH v2] Check optab before transforming atomic bit test and operations

2021-11-15 Thread H.J. Lu via Gcc-patches
== SSA_NAME > >&& SSA_NAME_OCCURS_IN_ABNORMAL_PHI (use_lhs)) > > return; > > > >tree use_rhs = gimple_assign_rhs1 (use_stmt); > > if (lhs != use_rhs) > > return; > > > >if (optab_handler (optab, T

Re: [PATCH v2] Check optab before transforming atomic bit test and operations

2021-11-14 Thread Hongtao Liu via Gcc-patches
On Mon, Nov 15, 2021 at 9:37 AM Hongtao Liu wrote: > > On Sat, Nov 13, 2021 at 2:21 AM H.J. Lu via Gcc-patches > wrote: > > > > On Fri, Nov 12, 2021 at 8:13 AM Jakub Jelinek wrote: > > > > > > On Fri, Nov 12, 2021 at 07:55:26AM -0800, H.J. Lu wrote: > > > > > I have following patch queued for

Re: [PATCH v2] Check optab before transforming atomic bit test and operations

2021-11-14 Thread Hongtao Liu via Gcc-patches
On Sat, Nov 13, 2021 at 2:21 AM H.J. Lu via Gcc-patches wrote: > > On Fri, Nov 12, 2021 at 8:13 AM Jakub Jelinek wrote: > > > > On Fri, Nov 12, 2021 at 07:55:26AM -0800, H.J. Lu wrote: > > > > I have following patch queued for testing for this... > > > > > > > > 2021-11-12 Jakub Jelinek > > >

[PATCH v2] Check optab before transforming atomic bit test and operations

2021-11-12 Thread H.J. Lu via Gcc-patches
6/pr103205.c: New test. > > > > Can you include my tests? Or you can leave out your test and I can check > > in my tests after your fix has been checked in. > > I'd prefer the latter. > Here is the v2 patch on top of yours. -- H.J. From 9520fa78ae04e845905d8bb2bab