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

            Bug ID: 25245
           Summary: clang takes a long time to compile an empty file
                    including ExecutionEngine/Interpreter.h
           Product: clang
           Version: trunk
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

While experimenting with the JIT, I noticed that clang takes *a lot* of time to
compile a file that includes ExecutionEngine/Interpreter.h.

$ cat factorial.cpp 
#include "llvm/ExecutionEngine/Interpreter.h"

int main(void) {}

$ time  clang++ -v -c -std=c++11 -g -fno-rtti factorial.cpp `llvm-config
--cppflags interpreter support core mcjit native nativecodegen` -o factorial

[...]
real    0m12.204s
user    0m12.064s
sys     0m0.126s

Time shows up all the CPU time is spent in userland, and some additional
profiling shows that we spend large part of our cycles in the parser (the
output is (unfortunately) a little bit messy but you can click on the
rectangles to zoom in)
https://people.freebsd.org/~davide/pics/clang_takes_forever.svg 

Is this something that can be worked around/improved?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to