[all-commits] [llvm/llvm-project] 1bb776: [LoongArch] Optimize stack realignment using BSTRI...

wanglei via All-commits all-commits at lists.llvm.org
Tue Aug 22 18:22:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1bb7766489803bb5cc4752ecade1164b31b758b5
      https://github.com/llvm/llvm-project/commit/1bb7766489803bb5cc4752ecade1164b31b758b5
  Author: wanglei <wanglei at loongson.cn>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchFrameLowering.cpp
    M llvm/test/CodeGen/LoongArch/stack-realignment-with-variable-sized-objects.ll
    M llvm/test/CodeGen/LoongArch/stack-realignment.ll

  Log Message:
  -----------
  [LoongArch] Optimize stack realignment using BSTRINS instruction

Prior to this change, stack realignment was achieved using the SRLI/SLLI
instructions in two steps. With this patch, stack realignment is
optimized using a single `BSTRINS` instruction.

Reviewed By: SixWeining, xen0n

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




More information about the All-commits mailing list