[RISCV] Remove C!=0 restriction from (sub C, (setcc x, y, eq/neq)) -> (add...
[RISCV] Remove C!=0 restriction from (sub C, (setcc x, y, eq/neq)) -> (add C-1, (setcc x, y, neq/eq)). While (sub 0, X) can use x0 for the 0, I believe (add X, -1) is still preferrable. (addi X, -1) can be compressed, sub with x0 on the LHS is never compressible.
Loading
Please sign in to comment