[LLVMbugs] [Bug 2337] New: SimplfyLibCalls should inline calls to abs

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat May 17 09:42:27 PDT 2008


           Summary: SimplfyLibCalls should inline calls to abs
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu

Per description, SimplfyLibCalls should simplify calls to abs.  This isn't
necessary for llvm-gcc, but it is useful for compilers that aren't clever
enough to fold calls to abs, like clang.

Simple testcase (in clang):
int a(int x) {return abs(x);}

This does bring up an interesting side-issue: can LLVM simplify calls to llabs?
llabs, as far as I can tell, only became a reserved external identifier in C99.

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