[all-commits] [llvm/llvm-project] d9e884: [LoongArch][NFC] Add tests of multiplication with ...

Ben Shi via All-commits all-commits at lists.llvm.org
Thu Apr 6 17:47:12 PDT 2023


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

  Changed paths:
    M llvm/test/CodeGen/LoongArch/ir-instruction/mul.ll

  Log Message:
  -----------
  [LoongArch][NFC] Add tests of multiplication with immediates (for D147428)

Reviewed By: SixWeining

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


  Commit: c8a2301555a2ce7fb2e0b8a0e3ad080c77403735
      https://github.com/llvm/llvm-project/commit/c8a2301555a2ce7fb2e0b8a0e3ad080c77403735
  Author: Ben Shi <powerman1st at 163.com>
  Date:   2023-04-07 (Fri, 07 Apr 2023)

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

  Log Message:
  -----------
  [LoongArch] Optimize multiplication with immediates

Optimize "(mul r, c)" to "(SLLI (ALSL r, r, i0), i1)", in which
"c = (1 + (1 << i0)) << i1".

Reviewed By: SixWeining

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


Compare: https://github.com/llvm/llvm-project/compare/8b0033e58a49...c8a2301555a2


More information about the All-commits mailing list