[llvm-dev] Spilling to register for a given register class

Hendrik Greving via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 17 13:47:02 PST 2019


Hello, for an architecture that doesn't have a good way to load/store a
given register class to memory, is it instead easy to spill/fill from
another register class instead?
e.g.
- storeRegToStack/loadRegFromStack use a pseudo instruction and add virtual
register operand is not supported (spill optimization doesn't seem to like
this).
- AMDGPU backend seems to do sth. similar?

The only way to safely do it seems to use register scavenger to get a temp
register, and spill this in eliminateFrameIndex? Is there an obvious way to
spill to a register instead? Thanks in advance for any hints
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191217/200774ad/attachment.html>


More information about the llvm-dev mailing list