Files
clang-p2996/llvm/test/CodeGen/RISCV
Stefan Pintilie 8d69e953b5 [RISCV] Add combine for shadd family of instructions. (#130829)
For example for the following situation:
  %6:gpr = SLLI %2:gpr, 2
  %7:gpr = ADDI killed %6:gpr, 24
  %8:gpr = ADD %0:gpr, %7:gpr

If we swap the two add instrucions we can merge the shift and add. The
final code will look something like this:
  %7 = SH2ADD %0, %2
  %8 = ADDI %7, 24
2025-03-31 10:02:12 -04:00
..