Re: [RFC v2] RISCV: Combine Pass Clobber Ops

2022-03-11 Thread Segher Boessenkool
Hi! On Thu, Mar 10, 2022 at 09:54:55AM -0800, Patrick O'Neill wrote: > I added this enforcement during the combine pass since it looks at the > cost of certian expressions and can rely on the target to tell the > pass that clobber-ops are cheaper than regular ops. That is not a reason to put targ

Re: [RFC v2] RISCV: Combine Pass Clobber Ops

2022-03-11 Thread Kito Cheng via Gcc-patches
Hi Patrick: There is few direction in my mind: 1. Model the C extension right in riscv.md 2. Write peephole2 pattern. 3. Implement a RISC-V specific register renaming pass. 1. Model the C extension right in riscv.md Currently we rely the GNU as to compress the instruction to C extension, and ac