diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2017-10-31 20:19:39 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2017-10-31 20:19:39 +0000 |
| commit | 7cb25a888ce53c288de9369c5b98082b4ea5ec26 (patch) | |
| tree | 298d75644c31f5c8a0594f00cb3936d876eb2413 /llvm/lib | |
| parent | 0fad6dd3c44a8d9352a3e73dbac5fd285ceafbdf (diff) | |
| download | bcm5719-llvm-7cb25a888ce53c288de9369c5b98082b4ea5ec26.tar.gz bcm5719-llvm-7cb25a888ce53c288de9369c5b98082b4ea5ec26.zip | |
[CodeGen] map sqrt libcalls to llvm.sqrt when errno is not set
The LLVM sqrt intrinsic definition changed with:
D28797
...so we don't have to use any relaxed FP settings other than errno handling.
This patch sidesteps a question raised in PR27435:
https://bugs.llvm.org/show_bug.cgi?id=27435
Is a programmer using __builtin_sqrt() invoking the compiler's intrinsic definition of sqrt or the mathlib definition of sqrt?
But we have an answer now: the builtin should match the behavior of the libm function including errno handling.
Differential Revision: https://reviews.llvm.org/D39204
llvm-svn: 317031
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions

