Re: [PATCH] tree-vect-patterns: One small vect_recog_ctz_ffs_pattern tweak [PR109011]

2023-04-20 Thread Richard Biener via Gcc-patches
> Am 20.04.2023 um 19:40 schrieb Jakub Jelinek via Gcc-patches > : > > Hi! > > I've noticed I've made a typo, ifn in this function this late > is always only IFN_CTZ or IFN_FFS, never IFN_CLZ. > > Due to this typo, we weren't using the originally intended > .CTZ (X) = .POPCOUNT ((X - 1) &

[PATCH] tree-vect-patterns: One small vect_recog_ctz_ffs_pattern tweak [PR109011]

2023-04-20 Thread Jakub Jelinek via Gcc-patches
Hi! I've noticed I've made a typo, ifn in this function this late is always only IFN_CTZ or IFN_FFS, never IFN_CLZ. Due to this typo, we weren't using the originally intended .CTZ (X) = .POPCOUNT ((X - 1) & ~X) but .CTZ (X) = PREC - .POPCOUNT (X | -X) instead when we want to emit