[LLVMbugs] [Bug 9019] __builtin_fabs shouldn't lower to libm call

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 17 15:38:45 PST 2011


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Chris Lattner <clattner at apple.com> 2011-02-17 17:38:45 CST ---
This is behaving correctly.  Clang can optimize this out in cases where it
matters, but only if you turn the optimizer on.  Expecting to use builtin_fabs
but not link in libm is somewhat silly.

FWIW, I'm seeing this optimized code on x86-64, it isn't going through integer

_f:                                     ## @f
    andps    LCPI0_0(%rip), %xmm0

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list