[all-commits] [llvm/llvm-project] 882dda: [LoongArch] Generate PCALAU12I + JIRL instruction ...

wanglei via All-commits all-commits at lists.llvm.org
Fri Nov 11 02:27:22 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 882ddab4c0674763473ca82451bb8fe96a998f5a
      https://github.com/llvm/llvm-project/commit/882ddab4c0674763473ca82451bb8fe96a998f5a
  Author: wanglei <wanglei at loongson.cn>
  Date:   2022-11-11 (Fri, 11 Nov 2022)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
    A llvm/test/CodeGen/LoongArch/codemodel-medium.ll

  Log Message:
  -----------
  [LoongArch] Generate PCALAU12I + JIRL instruction pair for medium codemodel

In LoongArch, when `CodeModel=Medium`, it just increases the jumping
ability of function calls relative to PC, from 2^28 to 2^32.

Depends on D137393

Reviewed By: SixWeining

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




More information about the All-commits mailing list