Re: [PATCH V2, rs6000] Tweak modulo define_insns to eliminate register copy

2023-03-21 Thread Segher Boessenkool
Hi! On Tue, Mar 21, 2023 at 07:10:04AM -0500, Pat Haugen wrote: > Updated patch with review comments addressed: fixed up testcase and added > another testcase to verify peephole is functional. > > Don't force target of modulo into a distinct register. > > The define_insns for the modulo operatio

[PATCH V2, rs6000] Tweak modulo define_insns to eliminate register copy

2023-03-21 Thread Pat Haugen via Gcc-patches
Updated patch with review comments addressed: fixed up testcase and added another testcase to verify peephole is functional. Don't force target of modulo into a distinct register. The define_insns for the modulo operation currently force the target register to a distinct reg in preparation for