[LLVMbugs] [Bug 8563] New: clang hangs while optimizing a snippet of C++ code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 6 22:40:35 PDT 2010


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

           Summary: clang hangs while optimizing a snippet of C++ code
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pipping at exherbo.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


At least that is what it looks like.

  Compiling the file in question with g++ 4.4:

pipping at bogus ~ $ time g++ -w -c foo.cpp 

real    0m16.027s
user    0m15.492s
sys     0m0.520s
pipping at bogus ~ $ 

  Compiling it with clang++ (I aborted after a couple of minutes):

pipping at bogus ~ $ time clang++ -w -c foo.cpp 
^C

real    4m26.475s
user    0m0.019s
sys     0m0.010s
pipping at bogus ~ $ 

  What confuses me is this:

pipping at bogus ~ $ time clang++ -w -c foo.cpp -o foo.bc -emit-llvm

real    0m4.783s
user    0m4.581s
sys     0m0.198s
pipping at bogus ~ $ time llc foo.bc -o foo.o

real    0m22.721s
user    0m22.443s
sys     0m0.264s
pipping at bogus ~ $ 


Shouldn't one of the former two hang as well?

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