[PATCH] Fix pow simplification when fabs and sqrt are unavailable

Eli Friedman eli.friedman at gmail.com
Thu Aug 15 14:13:25 PDT 2013


On Thu, Aug 15, 2013 at 6:10 AM, Kuperstein, Michael M <
michael.m.kuperstein at intel.com> wrote:

>  Hi,****
>
> ** **
>
> This adds a missing TLI check for the pow(x, 0.5) -> fabs(sqrt(x))
> simplification.****
>
> ** **
>
> There’s a similar problem with exp2, but I don’t see a LibFunc::ldexp I
> can check for. ****
>
> Anyone has any idea if it’s missing on purpose, or just an omission? ****
>
> ** **
>
>
>
Just an omission.  We add functions to LibFunc as needed.

-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130815/32298e45/attachment.html>


More information about the llvm-commits mailing list