[LLVMbugs] [Bug 11544] New: Trivial math builtins not inlined

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 12 06:49:34 PST 2011


             Bug #: 11544
           Summary: Trivial math builtins not inlined
           Product: clang
           Version: 3.0
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dsaritz at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

When compiling for -march=armv7-a, Apple Clang 3.0 from Xcode 4.2 fails to
inline math builtins, both relatively complex ones like __builtin_fmodf as well
as trivial (single instruction) ones like __builtin_lrintf.
-ffast-math -D__NO_MATH_INLINES do not help...

__builtin_lrintf is most important to me as I need fast scalar float to int 
rounding and there is no intrisic for that AFAIK (and the inline ARM assembler
is broken in Apple's Clang 3.0).

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