Re: [PATCH v2] RISC-V: Improve code generation for select of consecutive constants

2024-09-29 Thread Jeff Law
On 9/27/24 1:36 AM, Jovan Vukic wrote: Based on the valuable feedback I received, I decided to implement the patch in the RTL pipeline. Since a similar optimization already exists in simplify_binary_operation_1, I chose to generalize my original approach and place it directly below that code.

[PATCH v2] RISC-V: Improve code generation for select of consecutive constants

2024-09-27 Thread Jovan Vukic
Based on the valuable feedback I received, I decided to implement the patch in the RTL pipeline. Since a similar optimization already exists in simplify_binary_operation_1, I chose to generalize my original approach and place it directly below that code. The expression (X xor C1) + C2 is simplifie