[LLVMbugs] [Bug 2717] New: significant code bloat vs. gcc at -Os

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Aug 23 11:57:12 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2717

           Summary: significant code bloat vs. gcc at -Os
           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: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1958)
 --> (http://llvm.org/bugs/attachment.cgi?id=1958)
code for this PR

Seen using r55218 on Ubuntu Hardy on ia32.

Here's an example where llvm should probably be producing smaller code.  Its
output is 700% larger than gcc's.

regehr at john-home:~/volatile/tmp11$ llvm-gcc -Os -w small.c -o small ; size
small
   text    data     bss     dec     hex filename
   6324     252       8    6584    19b8 small
regehr at john-home:~/volatile/tmp11$ current-gcc -Os -w small.c -o small ; size
small
   text    data     bss     dec     hex filename
    784     252      12    1048     418 small

Looks easy to fix: at -Os the inliner should not be so aggressive.


-- 
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