[PATCH] D141020: [X86][ABI] Clobber %RAX for preserve_allcc and preserve_mostcc CCs

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 10 15:59:07 PST 2023


efriedma added a comment.

> FPRs is not a problem as the doc says they are not preserved

MostRegs doesn't, but AllRegs does?

> Not sure if the current framework support or not.

X86RegisterInfo::getCalleeSavedRegs has enough information to figure out the correct set of registers; not sure if there's any convenient way to compute it, though.  Not sure X86RegisterInfo::getCallPreservedMask has enough information to tell; it looks like the actual signature isn't passed.  The callers should have that information available, though.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D141020



More information about the llvm-commits mailing list