[LLVMbugs] [Bug 7362] New: A function with computed goto is compiled slowly and produces a large object file

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jun 12 07:34:28 PDT 2010


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

           Summary: A function with computed goto is compiled slowly and
                    produces a large object file
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: moonshine at kapsi.fi
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5016)
 --> (http://llvm.org/bugs/attachment.cgi?id=5016)
a self-contained testcase

$ time gcc -O2 -c -o vm_gcc.o vm.i 

real    0m13.378s
user    0m12.248s
sys    0m0.264s
$ time clang -O2 -c -o vm_clang.o vm.i 

real    1m34.942s
user    1m3.066s
sys    0m25.986s
$ size vm_gcc.o vm_clang.o
   text       data        bss        dec        hex    filename
  74704        640        164      75508      126f4    vm_gcc.o
 525331       2688        145     528164      80f24    vm_clang.o

This file is from a development version of Guile, which can be built with
clang, but due to this bug it runs at least five times slower than gcc-compiled
version.

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