[llvm] r221318 - Analysis: Make isSafeToSpeculativelyExecute fire less for divides

Chandler Carruth chandlerc at google.com
Sat Nov 8 21:49:32 PST 2014


On Sat, Nov 8, 2014 at 11:43 PM, David Majnemer <david.majnemer at gmail.com>
wrote:

>
> I'm pretty sure the LangRef has a bug here.  It cannot literally mean
> undefined behavior or the program hits UB once an add nsw that produces
> poison is used as the operand to another add.
>

Yes this is the known bug in the poison spec. None have wanted to fix it
because it seems likely better to remove the need for poison by specifying
(and implementing if necessary) the relevant optimization opportunities in
terms of undef, which is a much simpler construct.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141108/6cf706c7/attachment.html>


More information about the llvm-commits mailing list