[CodeGen] Emit conj/conjf/confjl libcalls as fneg instructions if possible.
authorCraig Topper <craig.topper@intel.com>
Tue, 31 Dec 2019 18:33:30 +0000 (10:33 -0800)
committerCraig Topper <craig.topper@intel.com>
Tue, 31 Dec 2019 18:41:00 +0000 (10:41 -0800)
commit5e5a1d27909626169c15b8f63e10d22fcbdf88d9
tree9ea48c8536b27d72db9b7825843efb60a45a04b9
parent430bba2a0f39b543e66119761d1526d037229936
[CodeGen] Emit conj/conjf/confjl libcalls as fneg instructions if possible.

We already recognize the __builtin versions of these, might as well
recognize the libcall version.

Differential Revision: https://reviews.llvm.org/D72028
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/complex-libcalls-2.c [new file with mode: 0644]
clang/test/CodeGen/complex-libcalls.c