[PATCH] D141020: [X86][ABI] Don't preserve return regs for preserve_all/preserve_most CCs

Anton Bikineev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 18 17:37:58 PST 2023


AntonBikineev updated this revision to Diff 490337.
AntonBikineev retitled this revision from "[X86][ABI] Clobber %RAX for preserve_allcc and preserve_mostcc CCs" to "[X86][ABI] Don't preserve return regs for preserve_all/preserve_most CCs".
AntonBikineev edited the summary of this revision.
AntonBikineev added a comment.

Ptal. Now the change preserves all the declared callee-saved-regs as long as they are not used to return a value. The change should be backward compatible, assuming the user code was correct.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D141020

Files:
  llvm/docs/LangRef.rst
  llvm/lib/Target/X86/X86CallingConv.td
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/preserve_allcc64.ll
  llvm/test/CodeGen/X86/preserve_mostcc64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141020.490337.patch
Type: text/x-patch
Size: 24261 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230119/3ee1100f/attachment.bin>


More information about the llvm-commits mailing list