[RISCV] Optimize x > 1 ? x : 1 -> x > 0 ? x : 1
if x == 1, x > 1 ? x : 1 return x, which is also 1. x > 0 ? x : 1 return 1. Reduce the number of load 1 instructions. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D132211
Loading
Please sign in to comment