[all-commits] [llvm/llvm-project] 1d0cce: [ARM] Don't allocate memory if free space in segme...

ZhiyaoMa98 via All-commits all-commits at lists.llvm.org
Tue May 2 05:10:28 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d0ccebcd725309399262af346494242b064e2ed
  Author: Zhiyao Ma <zhiyao.ma.98 at gmail.com>
  Date:   2023-05-02 (Tue, 02 May 2023)

  Changed paths:
    M llvm/lib/Target/ARM/ARMFrameLowering.cpp
    M llvm/test/CodeGen/ARM/debug-segmented-stacks.ll
    M llvm/test/CodeGen/ARM/segmented-stacks-dynamic.ll
    M llvm/test/CodeGen/ARM/segmented-stacks.ll
    M llvm/test/CodeGen/Thumb/segmented-stacks-dynamic.ll
    M llvm/test/CodeGen/Thumb/segmented-stacks.ll
    M llvm/test/CodeGen/Thumb2/segmented-stacks.ll

  Log Message:
  [ARM] Don't allocate memory if free space in segmented stack is just enough

Assuming that the stack grows downwards, it is fine if the stack
pointer is exactly at the stacklet boundary. We should use
less-or-equal condition when deciding whether to skip new memory

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

More information about the All-commits mailing list