[PATCH] [complex] Teach the complex math IR gen to emit direct math and a NaN-test prior to the call to the library function.

Chandler Carruth chandlerc at gmail.com
Mon Oct 13 11:39:53 PDT 2014


Hi hfinkel, scanon, resistor,

This should automatically make fastmath (including just non-NaNs) able to avoid
the expensive libcalls and also open the door to more advanced folding in LLVM
based on the rules for complex math.

http://reviews.llvm.org/D5756

Files:
  lib/CodeGen/CGExprComplex.cpp
  test/CodeGen/complex-math.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5756.14810.patch
Type: text/x-patch
Size: 7618 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141013/a0baf7fe/attachment.bin>


More information about the cfe-commits mailing list