[all-commits] [llvm/llvm-project] f589e5: [LoongArch] Split SP adjustment

wanglei via All-commits all-commits at lists.llvm.org
Fri Oct 28 01:41:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f589e5067fc8c15d8fc228169055c63ff29b2c14
      https://github.com/llvm/llvm-project/commit/f589e5067fc8c15d8fc228169055c63ff29b2c14
  Author: wanglei <wanglei at loongson.cn>
  Date:   2022-10-28 (Fri, 28 Oct 2022)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchFrameLowering.cpp
    M llvm/lib/Target/LoongArch/LoongArchFrameLowering.h
    A llvm/test/CodeGen/LoongArch/split-sp-adjust.ll
    M llvm/test/CodeGen/LoongArch/stack-realignment.ll

  Log Message:
  -----------
  [LoongArch] Split SP adjustment

This patch split the SP adjustment to reduce the instructions in
prologue and epilogue. In this way, the offset of the callee saved
register could fit in a single store.

Similar to D68011(RISCV).

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




More information about the All-commits mailing list