[llvm-bugs] [Bug 35198] New: Clang takes 15 minutes to compile a single file using the GLI with -O0

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 3 13:49:48 PDT 2017


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

            Bug ID: 35198
           Summary: Clang takes 15 minutes to compile a single file using
                    the GLI with -O0
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: d.m.bugs at web.de
                CC: llvm-bugs at lists.llvm.org

Clang takes 15min to compile a simple file with the
GLI (https://github.com/g-truc/gli) library with -O0.
The Problem disappears for all other optimization levels.

To reproduce download the sample code with:
$ git clone --recursive https://github.com/mensinda/gliClang
$ cd gliClang

then run ./test.sh or
$ clang++ -o test fullTest.cpp -Igli -Iglm -std=c++14 -O0


g++ with -O0:
real    0m1.242s
user    0m1.176s
sys     0m0.066s

clang++ with -O0
real    15m7.950s
user    15m7.233s
sys     0m0.433s

clang++ with -O1
real    0m1.698s
user    0m1.648s
sys     0m0.047s

$ clang --version
clang version 5.0.0 (tags/RELEASE_500/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

-- 
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/20171103/95f9181c/attachment.html>


More information about the llvm-bugs mailing list