Re: [PATCH v1] LoongArch: Implement C[LT]Z_DEFINED_VALUE_AT_ZERO

2023-11-16 Thread Xi Ruoyao
On Thu, 2023-11-16 at 20:30 +0800, Li Wei wrote: > The LoongArch has defined ctz and clz on the backend, but if we want GCC > do CTZ transformation optimization in forwprop2 pass, GCC need to know > the value of c[lt]z at zero, which may be beneficial for some test cases > (like spec2017 deepsjeng_

[PATCH v1] LoongArch: Implement C[LT]Z_DEFINED_VALUE_AT_ZERO

2023-11-16 Thread Li Wei
The LoongArch has defined ctz and clz on the backend, but if we want GCC do CTZ transformation optimization in forwprop2 pass, GCC need to know the value of c[lt]z at zero, which may be beneficial for some test cases (like spec2017 deepsjeng_r). After implementing the macro, we test dynamic instru