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

2021-11-15 Thread H.J. Lu via Gcc-patches
se_lhs) == 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

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 te

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
b2bab88cf429bf7840 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 12 Nov 2021 07:21:43 -0800 Subject: [PATCH v2] Check optab before transforming atomic bit test and operations Check optab before transforming equivalent, but slighly different cases of atomic bit test and operations to