<div class="gmail_quote"><div>Å correction:</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="gmail_quote"><div class="im"><div></div></div>
<div>You could re-write it in place (using MachineRegisterOperand::setReg(<reg>)...</div></div></div></blockquote><div><br></div><div>That should have been MachineOperand::setReg(<reg>)...</div><div><br></div>
<div>And a disclaimer:</div><div>I wrote the PBQP allocator, so I might be biased. I think it's easier to follow than linear scan though.</div><div><br></div><div>- Lang.</div></div>