HomePhabricator

[SystemZ] Return the right offsets from getCalleeSavedSpillSlots().

Authored by jonpa on Nov 25 2019, 9:48 AM.

Description

[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

Details

Committed
jonpaNov 25 2019, 10:03 AM
Parents
rGaaf7f05a96e6: [NFC][LoopFusion] Use isControlFlowEquivalent() from CodeMoverUtils. Reviewer…
Branches
Unknown
Tags
Unknown