[LLVMdev] Optimization of sqrt() with invalid argument
Stephen Canon
scanon at apple.com
Thu Sep 25 16:05:27 PDT 2014
> On Sep 25, 2014, at 6:41 PM, Tim Northover <t.p.northover at gmail.com> wrote:
>
>> This is important in practice because of the xalanc benchmark in SPEC
>> CPU2006.
>
> No, it would be important in practice for really used legacy (i.e.
> unfixable) code relying on this undefined behaviour. It's important
> for gaming the system if it occurs in SPEC.
We should fix it because it costs us nothing to do and conforms to IEEE-754, and there’s no good reason to maintain the current behavior.
– Steve
More information about the llvm-dev
mailing list