aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-11-06 22:40:09 +0000
committerSanjay Patel <spatel@rotateright.com>2017-11-06 22:40:09 +0000
commit86d24f1668aaeb41362031fa31b4c4269488a68b (patch)
tree181b4f4a20720403328665feea31750b230811b6 /llvm/lib/Transforms/Utils/Local.cpp
parent8c4b10e84a446e97b67a396ab54d5298e924ab74 (diff)
downloadllvm-86d24f1668aaeb41362031fa31b4c4269488a68b.zip
llvm-86d24f1668aaeb41362031fa31b4c4269488a68b.tar.gz
llvm-86d24f1668aaeb41362031fa31b4c4269488a68b.tar.bz2
[ValueTracking] readonly (const) is a requirement for converting sqrt to llvm.sqrt; nnan is not
As discussed in D39204, this is effectively a revert of rL265521 which required nnan to vectorize sqrt libcalls based on the old LangRef definition of llvm.sqrt. Now that the definition has been updated so the libcall and intrinsic have the same semantics apart from potentially setting errno, we can remove the nnan requirement. We have the right check to know that errno is not set: if (!ICS.onlyReadsMemory()) ...ahead of the switch. This will solve https://bugs.llvm.org/show_bug.cgi?id=27435 assuming that's being built for a target with -fno-math-errno. Differential Revision: https://reviews.llvm.org/D39642 llvm-svn: 317519
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions