[llvm-commits] [llvm] r134231 - /llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Jun 30 22:34:19 PDT 2011


On Jun 30, 2011, at 9:15 PM, Rafael Espindola wrote:

>   // FIXME: If "B = X" kills X, we have to move the kill back to its
>   // previous use. For now we just avoid the optimization in that case.

This is actually an easy FIXME. Se the other places that call li_->shrinkToUses() after remat etc.

The only trick is to call it after markAsJoined() has undef'ed all operands on the COPY instruction that is going away. Otherwise the undead COPY would still require liveness.

/jakob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110630/2942751b/attachment.html>


More information about the llvm-commits mailing list