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

Ben Shi via All-commits all-commits at lists.llvm.org
Sun Apr 2 20:29:09 PDT 2023


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

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

  Log Message:
  -----------
  [LoongArch][NFC] Add tests of multiplication with immediates

Reviewed By: xen0n, SixWeining

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


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

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/test/CodeGen/LoongArch/alsl.ll
    M llvm/test/CodeGen/LoongArch/ir-instruction/mul.ll

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

Optimize 'x * c' to (ALSL x, (SLLI x, i0), i1) in which
c = (1 << i0) | (1 << i1).

Reviewed By: xen0n, SixWeining

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


Compare: https://github.com/llvm/llvm-project/compare/b5f207e5b259...d88ffb0dc5af


More information about the All-commits mailing list