https://bugs.llvm.org/show_bug.cgi?id=38208
Bug ID: 38208
Summary: Huge static analysis performance regression for very
simple testcase
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: dcough...@apple.com
Reporter: abramo.bagn...@bugseng.com
CC: llvm-bugs@lists.llvm.org
$ 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.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs