[all-commits] [llvm/llvm-project] a703a9: [LoongArch] Optimize 32-bit addition with ALSL_W o...

Ben Shi via All-commits all-commits at lists.llvm.org
Sun Apr 2 23:47:47 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a703a9ae33a8cc7e999732791d4d2a592eca3897
  Author: Ben Shi <powerman1st at 163.com>
  Date:   2023-04-03 (Mon, 03 Apr 2023)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
    M llvm/test/CodeGen/LoongArch/ir-instruction/mul.ll

  Log Message:
  [LoongArch] Optimize 32-bit addition with ALSL_W on LoongArch64

Optimize 32-bit 'x+(y<<i)' to (ALSL_W y, x, i) on LoongArch64,
in which 'i' is in [1, 2, 3, 4].

Reviewed By: xen0n, SixWeining

Differential Revision: https://reviews.llvm.org/D147423

More information about the All-commits mailing list