[PATCH] D139679: [X86] Don't zero out %eax if both %al and %ah are used
Bill Wendling via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 15:31:30 PST 2022
void created this revision.
void added reviewers: nickdesaulniers, craig.topper, arsenm.
Herald added subscribers: StephenFan, pengfei, hiraditya.
Herald added a project: All.
void requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
The iterator over super and sub registers doesn't include both 8-bit
registers in its list. So if both registers are used and only one of
them is live on return, then we need to make sure that the other 8-bit
register is also marked as live and not zeroed out.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139679
Files:
llvm/lib/Target/X86/X86FrameLowering.cpp
llvm/test/CodeGen/X86/zero-call-used-regs-i386.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139679.481464.patch
Type: text/x-patch
Size: 5673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221208/d63afef3/attachment.bin>
More information about the llvm-commits
mailing list