[PATCH] D89451: [SystemZ] Mark unsaved argument R6 as live throughout function

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 15 01:11:25 PDT 2020


jonpa created this revision.
jonpa added reviewers: uweigand, eli.friedman.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
jonpa requested review of this revision.

For historical reasons, the R6 <https://reviews.llvm.org/source/compiler-rt/> register is a callee saved argument register. This means that if it is used to pass an argument to a function that does not clobber it, it is live throughout the function.

This patch makes sure that in this special case any kill flags of it are removed, all MBBs have it in their live-in lists and all return instructions use it.


https://reviews.llvm.org/D89451

Files:
  llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
  llvm/test/CodeGen/SystemZ/frame-26.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89451.298324.patch
Type: text/x-patch
Size: 18155 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201015/fa7baa2e/attachment.bin>


More information about the llvm-commits mailing list