[all-commits] [llvm/llvm-project] 653d82: [LoongArch] Merge the 12bit constant address into ...

Gong LingQin via All-commits all-commits at lists.llvm.org
Wed Feb 8 00:58:48 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 653d823ad22b83fea3019e94e02f8ad99a33b4c0
      https://github.com/llvm/llvm-project/commit/653d823ad22b83fea3019e94e02f8ad99a33b4c0
  Author: gonglingqin <gonglingqin at loongson.cn>
  Date:   2023-02-08 (Wed, 08 Feb 2023)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.h
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
    M llvm/test/CodeGen/LoongArch/load-store-offset.ll

  Log Message:
  -----------
  [LoongArch] Merge the 12bit constant address into the offset field of the instruction

There are 12bit offset fields in the ld.[b/h/w/d] and st.[b/h/w/d].
When the constant address is less than 12 bits, the address
calculation is incorporated into the offset field of the instruction.

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




More information about the All-commits mailing list