[PATCH] D93171: [SystemZ] Improve handling of backchain offset

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 12 16:55:44 PST 2020


jonpa created this revision.
jonpa added a reviewer: uweigand.
Herald added a subscriber: hiraditya.
jonpa requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

- New function SDValue getBackchainAddress() used by lowerDYNAMIC_STACKALLOC() and lowerSTACKRESTORE() to properly handle the backchain offset also with packed-stack.

- Make a function getBackchainOffset() for the computation of the backchain and use in three places (NFC).

A new test @f6 in backchain.ll, which is same as @f5 except for using packed-stack. I replaced the offsets as needed and hopefully the test should be correct.


https://reviews.llvm.org/D93171

Files:
  llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
  llvm/lib/Target/SystemZ/SystemZFrameLowering.h
  llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
  llvm/lib/Target/SystemZ/SystemZISelLowering.h
  llvm/test/CodeGen/SystemZ/backchain.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93171.311416.patch
Type: text/x-patch
Size: 7046 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201213/4dfee65a/attachment.bin>


More information about the llvm-commits mailing list