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

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 04:47:08 PDT 2020


jonpa updated this revision to Diff 299640.
jonpa added a comment.

- Removed the adding of R6 <https://reviews.llvm.org/source/compiler-rt/> to live-in lists and return instructions.

- Changed the check to use getRestoreGPRRegs() instead of getSpillGPRRegs(). These may differ for a vararg function, where a vararg R6 <https://reviews.llvm.org/source/compiler-rt/> is spilled but not restored. In that case it is still unclobbered and live throughout the function. (The spilling of vararg r6 will first be marked with kill, but this patch will remove it).

- Changed the check to compare against SystemZ::R6 <https://reviews.llvm.org/source/compiler-rt/> directly since that should be the lowest restored GPR.




CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89451/new/

https://reviews.llvm.org/D89451

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89451.299640.patch
Type: text/x-patch
Size: 10307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201021/2d6a3309/attachment.bin>


More information about the llvm-commits mailing list