<html>
<head>
<base href="https://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 --- - Slow compilation with -O2 vs -O1 (~80sec vs ~2sec)"
href="https://llvm.org/bugs/show_bug.cgi?id=26013">26013</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Slow compilation with -O2 vs -O1 (~80sec vs ~2sec)
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jascha@jawset.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15553" name="attach_15553" title="preprocessed source to test slow compilation">attachment 15553</a> <a href="attachment.cgi?id=15553&action=edit" title="preprocessed source to test slow compilation">[details]</a></span>
preprocessed source to test slow compilation
The attached file is a pre-processed version of <a href="http://glew.sourceforge.net/">http://glew.sourceforge.net/</a>
Compile with:
clang -c -O2 slow_compilation_test.c
The function glewContextInit (line 15278) has a few hundred assignments, many
of which are conditional. The compile time scales with the number of these
assignments (tested by removing some of them from the end of the function
body).
It's thus difficult to extract an isolated test case.</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>