summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2017-01-31 23:08:57 +0000
committerJustin Lebar <jlebar@google.com>2017-01-31 23:08:57 +0000
commit06fcea4cd92ecedb8ddcebbe80650d2e92baf2db (patch)
treefa8e53f46d0dd2880f4a78ab50464f673d197007 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parentd9953d9dd289b87c17ed6b60d14f2db62b1f9dc4 (diff)
downloadbcm5719-llvm-06fcea4cd92ecedb8ddcebbe80650d2e92baf2db.tar.gz
bcm5719-llvm-06fcea4cd92ecedb8ddcebbe80650d2e92baf2db.zip
[NVPTX] Compute approx sqrt as 1/rsqrt(x) rather than x*rsqrt(x).
x*rsqrt(x) returns NaN for x == 0, whereas 1/rsqrt(x) returns 0, as desired. Verified that the particular nvptx approximate instructions here do in fact return 0 for x = 0. llvm-svn: 293713
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud