[RISCV] Optimization for using compressed beqz and bnez PR#56391
Optimization for using compressed beqz and bnez If there is pattern ``` br_cc val1 constval eq/neq place select_cc val1 constval eq/neq trueval falseval ``` and constval does not fit in compressed imm format(6 bit), but fit in imm format(12 bit), we can replace by non compress sub and compress c.beqz/c.bneqz: ``` addi val val -constval c.beqz val place ``` Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D132839
Loading
Please sign in to comment