Re: [PATCH v3] RISC-V: Implement C[LT]Z_DEFINED_VALUE_AT_ZERO

2022-06-03 Thread Philipp Tomsich
Thank you for catching this one. I'll provide a fix. On Fri, 3 Jun 2022 at 16:56, H.J. Lu wrote: > > On Fri, May 13, 2022 at 1:17 PM Philipp Tomsich > wrote: > > > > The Zbb support has introduced ctz and clz to the backend, but some > > transformations in GCC need to know what the value of c[l

Re: [PATCH v3] RISC-V: Implement C[LT]Z_DEFINED_VALUE_AT_ZERO

2022-06-03 Thread H.J. Lu via Gcc-patches
On Fri, May 13, 2022 at 1:17 PM Philipp Tomsich wrote: > > The Zbb support has introduced ctz and clz to the backend, but some > transformations in GCC need to know what the value of c[lt]z at zero > is. This affects how the optab is generated and may suppress use of > CLZ/CTZ in tree passes. > >

Re: [PATCH v3] RISC-V: Implement C[LT]Z_DEFINED_VALUE_AT_ZERO

2022-06-02 Thread Philipp Tomsich
Cherry picked from commit 16f7fcadac19dabd04a5abbe6601df52d22e9685 onto releases/gcc-12. On Thu, 2 Jun 2022 at 10:49, Kito Cheng wrote: > > OK to back port, thanks! > > On Thu, Jun 2, 2022 at 4:46 PM Philipp Tomsich > wrote: > > > > OK for backport? > > > > Thanks, > > Phil. > > > > On Fri, 13

Re: [PATCH v3] RISC-V: Implement C[LT]Z_DEFINED_VALUE_AT_ZERO

2022-06-02 Thread Kito Cheng via Gcc-patches
OK to back port, thanks! On Thu, Jun 2, 2022 at 4:46 PM Philipp Tomsich wrote: > > OK for backport? > > Thanks, > Phil. > > On Fri, 13 May 2022 at 22:23, Philipp Tomsich > wrote: > > > Added the two nits from Kito's review and … Applied to trunk! > > > > > > On Fri, 13 May 2022 at 22:16, Philipp

Re: [PATCH v3] RISC-V: Implement C[LT]Z_DEFINED_VALUE_AT_ZERO

2022-06-02 Thread Philipp Tomsich
OK for backport? Thanks, Phil. On Fri, 13 May 2022 at 22:23, Philipp Tomsich wrote: > Added the two nits from Kito's review and … Applied to trunk! > > > On Fri, 13 May 2022 at 22:16, Philipp Tomsich > wrote: > > > > The Zbb support has introduced ctz and clz to the backend, but some > > trans

Re: [PATCH v3] RISC-V: Implement C[LT]Z_DEFINED_VALUE_AT_ZERO

2022-05-13 Thread Philipp Tomsich
Added the two nits from Kito's review and … Applied to trunk! On Fri, 13 May 2022 at 22:16, Philipp Tomsich wrote: > > The Zbb support has introduced ctz and clz to the backend, but some > transformations in GCC need to know what the value of c[lt]z at zero > is. This affects how the optab is ge

[PATCH v3] RISC-V: Implement C[LT]Z_DEFINED_VALUE_AT_ZERO

2022-05-13 Thread Philipp Tomsich
The Zbb support has introduced ctz and clz to the backend, but some transformations in GCC need to know what the value of c[lt]z at zero is. This affects how the optab is generated and may suppress use of CLZ/CTZ in tree passes. Among other things, this is needed for the transformation of table-ba