Re: [to-be-committed][RISC-V] Improve sequences to generate -1, 1 in some cases.

2025-06-05 Thread Jeff Law
On 6/4/25 7:11 PM, Jeff Law wrote: On 6/4/25 6:37 PM, Palmer Dabbelt wrote: On Wed, 04 Jun 2025 17:25:20 PDT (-0700), Jeff Law wrote: This patch has a minor improvement to if-converted sequences based on observations I found while evaluating another patch from Shreya to handle more cases with z

Re: [to-be-committed][RISC-V] Improve sequences to generate -1, 1 in some cases.

2025-06-04 Thread Jeff Law
On 6/4/25 6:37 PM, Palmer Dabbelt wrote: On Wed, 04 Jun 2025 17:25:20 PDT (-0700), Jeff Law wrote: This patch has a minor improvement to if-converted sequences based on observations I found while evaluating another patch from Shreya to handle more cases with zicond insns. Specifically there is

Re: [to-be-committed][RISC-V] Improve sequences to generate -1, 1 in some cases.

2025-06-04 Thread Palmer Dabbelt
On Wed, 04 Jun 2025 17:25:20 PDT (-0700), Jeff Law wrote: This patch has a minor improvement to if-converted sequences based on observations I found while evaluating another patch from Shreya to handle more cases with zicond insns. Specifically there is a smaller/faster way than zicond to genera

[to-be-committed][RISC-V] Improve sequences to generate -1, 1 in some cases.

2025-06-04 Thread Jeff Law
This patch has a minor improvement to if-converted sequences based on observations I found while evaluating another patch from Shreya to handle more cases with zicond insns. Specifically there is a smaller/faster way than zicond to generate a -1,1 result when the condition is testing the sign