[llvm-bugs] [Bug 28382] New: excessive compile time with -O2

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 1 01:46:59 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28382

            Bug ID: 28382
           Summary: excessive compile time with -O2
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The attached code seems to take a long time with -O2

$ time ./results/bin/clang -c -O2 glew-b77619.c
real    15m51.212s
user    15m49.941s
sys    0m0.202s

$ time ./results/bin/clang -c glew-b77619.c
real    0m9.283s
user    0m8.964s
sys    0m0.043s

$ ./results/bin/clang -v
clang version 3.9.0 (trunk 274110)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/dcb/llvm/./results/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/6.1.1
Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/6.1.1
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
[dcb at dhcppc1 llvm]$ 

Anything up to five minutes seems reasonable, but over 15 minutes seems
a bit much.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160701/d202830a/attachment-0001.html>


More information about the llvm-bugs mailing list