[all-commits] [llvm/llvm-project] a7d3f6: [SystemZ] Return the right offsets from getCallee...

Jonas Paulsson via All-commits all-commits at lists.llvm.org
Mon Nov 25 10:05:46 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a7d3f6933ddbbd1c0b20529a0734ed66f98d75a0
      https://github.com/llvm/llvm-project/commit/a7d3f6933ddbbd1c0b20529a0734ed66f98d75a0
  Author: Jonas Paulsson <paulsson at linux.vnet.ibm.com>
  Date:   2019-11-25 (Mon, 25 Nov 2019)

  Changed paths:
    M llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
    M llvm/test/CodeGen/SystemZ/anyregcc-novec.ll

  Log Message:
  -----------
  [SystemZ]  Return the right offsets from getCalleeSavedSpillSlots().

// Due to the SystemZ ABI, the DWARF CFA (Canonical Frame Address) is not
// equal to the incoming stack pointer, but to incoming stack pointer plus
// 160.  The getOffsetOfLocalArea() returned value is interpreted as "the
// offset of the local area from the CFA".

The immediate offsets into the Register save area returned by
getCalleeSavedSpillSlots() should take this offset into account, which this
patch makes sure of.

Patch and review by Ulrich Weigand.
https://reviews.llvm.org/D70427




More information about the All-commits mailing list