[LLVMdev] instructions requiring specific physical registers for operands

Jonas Paulsson jonas.paulsson at ericsson.com
Wed May 9 03:54:15 PDT 2012


Hi,

I have som instructions that require the operand to be placed in exactly one physical register, and thus I have introduced a Just_a0 register class.

I have found that the register allocators / coalescer do not seem to care about this. In many cases they "run out of registers during register allocation". I have managed to avoid some problems, by inserting target move instructions in and out of this Just_a0 register class.

I wonder, what would be the best solution for instructions that require operands in a particular register, and even gives the result in a particular register?

/Jonas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120509/f684001e/attachment.html>


More information about the llvm-dev mailing list