[LLVMdev] Float undef value propagation

Owen Anderson resistor at mac.com
Thu Dec 12 17:43:18 PST 2013


On Dec 12, 2013, at 4:57 PM, Philip Reames <listmail at philipreames.com> wrote:

> undef + any == NaN (since undef can be NaN) or undef + any (since undef could be zero)

undef + non-NaN is still undef.  The compiler is free to choose any value of the type it wishes when simplifying an undef expression.  The important point is that it still has to be a value of that type.  Hence, predicates that are true for any choice of value must still be respected.  This is the case for NaN + undef == NaN: while the compiler is free to choose any value for the undef, there is no such value for which the result is not NaN.

—Owen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131212/746c716f/attachment.html>


More information about the llvm-dev mailing list