[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?
- storeRegToStack/loadRegFromStack use a pseudo instruction and add virtual
register operand is not supported (spill optimization doesn't seem to like
- 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...
More information about the llvm-dev