[llvm-commits] [llvm] r134228 - /llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu Jun 30 19:42:16 PDT 2011
On Jun 30, 2011, at 7:40 PM, Jakob Stoklund Olesen wrote:
>
> On Jun 30, 2011, at 7:35 PM, Rafael Espindola wrote:
>
>> + SlotIndex CopyIdx = li.getInstructionIndex(MI).getNextIndex().getDefIndex();
>
> You probably didn't mean to use getNextIndex(). It gives you the next instruction in the function.
Actually, VNI->def gives you the slot you need, and doesn't require a DenseMap lookup.
/jakob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110630/d39e78e2/attachment.html>
More information about the llvm-commits
mailing list