<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - File takes relatively long in llvm but is parsed relatively quickly"
href="http://llvm.org/bugs/show_bug.cgi?id=21013">21013</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>File takes relatively long in llvm but is parsed relatively quickly
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nicolasweber@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=13058" name="attach_13058" title="repro">attachment 13058</a> <a href="attachment.cgi?id=13058&action=edit" title="repro">[details]</a></span>
repro
Instruments says that 2.3s is spent in clang::EmitBackendOutput and of that
2.2s in llvm::legacy::PassManagerImpl::run().
Parser::ParseTopLevelDecl takes only 0.8s.
Building with -O0 instead of -O2 -g makes the compile over twice as fast.
Filing with example, so folks can check if anything surprising is going on. If
not, to the WontFix it goes.
(Times on a 2 year old MBP, with a release build of clang as of today.)
The attached file is a preprocessed version of ninja's src/build_test.cc, it
can also be built by checking out ninja and running
CXX=path/to/clang ./configure.py
ninja ninja_test
touch src/build_test.cc
ninja ninja_test -v
in the checkout.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>