]> granicus.if.org Git - clang/commit
[Complex] Don't use __div?c3 when building with fast-math.
authorFlorian Hahn <florian.hahn@arm.com>
Wed, 20 Dec 2017 15:50:52 +0000 (15:50 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Wed, 20 Dec 2017 15:50:52 +0000 (15:50 +0000)
commit81af67cbfcb742042fd116c2df8d5be735efe453
tree62e67170aada8d816cd3de72f4a505e52db74d1e
parent08191e917b90c971dcbcbecf8f89ec1e661fa3b0
[Complex] Don't use __div?c3 when building with fast-math.

Summary: Plant an inline version of "((ac+bd)/(cc+dd)) + i((bc-ad)/(cc+dd))" instead.

Patch by Paul Walker.

Reviewed By: hfinkel

Differential Revision: https://reviews.llvm.org/D40299

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321183 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprComplex.cpp
test/CodeGen/complex-math.c