[llvm-commits] [PATCH] Instcombine: Don't optimize pow(2.0, x) -> exp2(x) if exp2 is unavailable

Derek Schuff dschuff at google.com
Mon Nov 26 11:17:02 PST 2012


Hi,
Attached is a patch to check that exp2 is available using the usual
TLI mechanism before optimizing pow(2.0, x) to exp2(x). This is a
problem if compiling a math library that implements exp2(x) as a call
to pow(2,x).

please review, thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Libcalls.diff
Type: application/octet-stream
Size: 693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121126/120acad8/attachment.obj>


More information about the llvm-commits mailing list