[all-commits] [llvm/llvm-project] b575bb: [PowerPC][AIX] Set the HasAlloca flag in the AIX T...

Zarko Todorovski via All-commits all-commits at lists.llvm.org
Mon Aug 23 12:20:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b575bbd0c78c462d2fd7ca4c1a2ae76632d2a6bc
      https://github.com/llvm/llvm-project/commit/b575bbd0c78c462d2fd7ca4c1a2ae76632d2a6bc
  Author: Zarko Todorovski <zarko at ca.ibm.com>
  Date:   2021-08-23 (Mon, 23 Aug 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
    A llvm/test/CodeGen/PowerPC/aix-alloca-r31.ll
    M llvm/test/CodeGen/PowerPC/aix-emit-tracebacktable-clobber-register.ll

  Log Message:
  -----------
  [PowerPC][AIX] Set the HasAlloca flag in the AIX Traceback Table only if R31 is used as a frame pointer

After c063946476e083a9a0c5bd397337d1ece4742ec6 usage of R31 doesn't necessarily mean
that alloca is used. The `TracebackTable::IsAllocaUsedMask` flag should be set only
when R31 is used as a frame pointer.

On AIX the `function calls alloca' bit seems to be set whenever R31 is
set up as a frame pointer, even when there is no alloca call.

Reviewed By: lkail

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




More information about the All-commits mailing list