[llvm-commits] [PATCH] Accidental <kill> on two-address operand

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Aug 3 23:54:23 PDT 2009


On 04/08/2009, at 08.44, Anton Korobeynikov wrote:

> Hello, Jakob
>
>> No, copyRegToReg inserts both instructions. It cannot do the move in
>> just one instruction.
> Why don't use a pseudo instruction for now? I found it's the only way
> to go when one wants, e.g. to copy regpairs via 2 reg-reg moves. Too
> many code assumes that the last instruction being inserted is a 'real
> move' and all others are just some unimportant stuff.

That would work.

In your case, have you tried adding imp-def/imp-use operands of the  
real super register?

Take a look at  BlackfinRegisterInfo::loadConstant where an i32  
constant is loaded into a register by loading the two halves with i16  
constants.




More information about the llvm-commits mailing list