[all-commits] [llvm/llvm-project] 6881c7: [RISCV] Don't select sh{1, 2, 3}add if shl doesn't h...

Jim Lin via All-commits all-commits at lists.llvm.org
Mon Jun 9 22:34:33 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6881c7d5fad8182116e41cc8fc061773afd5ec88
      https://github.com/llvm/llvm-project/commit/6881c7d5fad8182116e41cc8fc061773afd5ec88
  Author: Jim Lin <jim at andestech.com>
  Date:   2025-06-10 (Tue, 10 Jun 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/reassoc-shl-addi-add.ll

  Log Message:
  -----------
  [RISCV] Don't select sh{1,2,3}add if shl doesn't have one use (#143351)

Try to fix https://github.com/llvm/llvm-project/pull/130829#pullrequestreview-2730533158.
There's no benefit if shl doesn't have one use.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list