Re: [PATCH 5/8 v2] middle-end: Add cltz_complement idiom recognition

2023-01-19 Thread Richard Biener via Gcc-patches
On Thu, Jan 19, 2023 at 10:19 AM Jan-Benedict Glaw wrote: > > On Thu, 2022-12-22 17:42:16 +, Andrew Carlotti via Gcc-patches > wrote: > > New patch below, bootstrapped and regression tested on > > aarch64-unknown-linux-gnu and x86_64-pc-linux-gnu - ok to merge? > > > diff --git a/gcc/tree-ss

Re: [PATCH 5/8 v2] middle-end: Add cltz_complement idiom recognition

2023-01-19 Thread Jan-Benedict Glaw
On Thu, 2022-12-22 17:42:16 +, Andrew Carlotti via Gcc-patches wrote: > New patch below, bootstrapped and regression tested on > aarch64-unknown-linux-gnu and x86_64-pc-linux-gnu - ok to merge? > diff --git a/gcc/tree-ssa-loop-niter.cc b/gcc/tree-ssa-loop-niter.cc > index > fece876099c16875

Re: [PATCH 5/8 v2] middle-end: Add cltz_complement idiom recognition

2023-01-12 Thread Richard Biener via Gcc-patches
On Thu, Dec 22, 2022 at 6:42 PM Andrew Carlotti wrote: > > On Thu, Nov 24, 2022 at 11:41:31AM +0100, Richard Biener wrote: > > Note we do have CTZ and CLZ > > optabs and internal functions - in case there's a HImode CLZ this > > could be elided. More general you can avoid using the __builtin_ > >

[PATCH 5/8 v2] middle-end: Add cltz_complement idiom recognition

2022-12-22 Thread Andrew Carlotti via Gcc-patches
On Thu, Nov 24, 2022 at 11:41:31AM +0100, Richard Biener wrote: > Note we do have CTZ and CLZ > optabs and internal functions - in case there's a HImode CLZ this > could be elided. More general you can avoid using the __builtin_ > functions with their fixed types in favor of using IFN_C[TL]Z which