llvm-project
8d69e953 - [RISCV] Add combine for shadd family of instructions. (#130829)

Commit
262 days ago
[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
Parents
Loading