[LLVMdev] How to avoid register reuse in machine instructions?

Anton Korobeynikov anton at korobeynikov.info
Wed Jan 19 10:14:14 PST 2011


Hello,

> I'm guessing that the right way to do this would be to kill the operand
> registers after the given machine instruction rather than before it, but
> I don't see a way to mark it this way.
Right now the only way is to mark output reg as earlyclobber (see ARM
backend for examples).
Note that post-RA scheduler is not yet aware about earlyclobber
operands and thus can break the constraint.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list