[PATCH] D73170: Handle subregs and superregs in callee-saved register mask
James Clarke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 03:49:26 PST 2020
jrtc27 created this revision.
jrtc27 added reviewers: joerg, hfinkel, nemanjai, jhibbits.
Herald added subscribers: llvm-commits, luismarques, steven.zhang, s.egerton, lenary, jsji, PkmX, simoncook, hiraditya, arichardson.
Herald added a project: LLVM.
If a target lists both a subreg and a superreg in a callee-saved
register mask, the prolog will spill both aliasing registers. Instead,
don't spill the subreg if a superreg is being spilled. This case is hit by the
PowerPC SPE code, as well as a modified RISC-V backend for CHERI I maintain out
of tree.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73170
Files:
llvm/lib/CodeGen/PrologEpilogInserter.cpp
llvm/test/CodeGen/PowerPC/spe.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73170.239532.patch
Type: text/x-patch
Size: 5288 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200122/e5a4b45a/attachment.bin>
More information about the llvm-commits
mailing list