forked from OSchip/llvm-project
12fd50410d
To quote the langref "Unlike sqrt in libm, however, llvm.sqrt has undefined behavior for negative numbers other than -0.0 (which allows for better optimization, because there is no need to worry about errno being set). llvm.sqrt(-0.0) is defined to return -0.0 like IEEE sqrt." This means that it's unsafe to replace sqrt with llvm.sqrt unless the call is annotated with nnan. Thanks to Hal Finkel for pointing this out! llvm-svn: 265521 |
||
---|---|---|
.. | ||
AArch64 | ||
AMDGPU | ||
ARM | ||
X86 | ||
XCore |