<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Huge static analysis performance regression for very simple testcase"
href="https://bugs.llvm.org/show_bug.cgi?id=38208">38208</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Huge static analysis performance regression for very simple testcase
</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>Linux
</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>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dcoughlin@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>abramo.bagnara@bugseng.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ cat p.c
int foo(int a, int b) {
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
a += b; b -= a;
return a + b;
}
$ time scan-build-6.0 gcc -c /tmp/p.c
scan-build: Using '/usr/lib/llvm-6.0/bin/clang' for static analysis
scan-build: Removing directory '/tmp/scan-build-2018-07-18-093847-29397-1'
because it contains no reports.
scan-build: No bugs found.
real 0m0,110s
user 0m0,058s
sys 0m0,033s
$ time scan-build-7 gcc -c /tmp/p.c
scan-build: Using '/usr/lib/llvm-7/bin/clang' for static analysis
scan-build: Removing directory '/tmp/scan-build-2018-07-18-093759-29380-1'
because it contains no reports.
scan-build: No bugs found.
real 0m24,952s
user 0m24,912s
sys 0m0,020s
Every single line added to the sequence in source above more than doubles the
execution time.</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>