summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/analyzer-config.c
diff options
context:
space:
mode:
authorPeter Szecsi <szepet95@gmail.com>2017-08-19 11:19:16 +0000
committerPeter Szecsi <szepet95@gmail.com>2017-08-19 11:19:16 +0000
commit999a25ff7283bd83f105ffb826b85181a30ffa41 (patch)
tree1109e6b4c4b99cfa0d7ee19acc2c9242aeea91a5 /clang/test/Analysis/analyzer-config.c
parent8de103f2f0aab1952d9cb9387a03d84a5b05c63e (diff)
downloadbcm5719-llvm-999a25ff7283bd83f105ffb826b85181a30ffa41.tar.gz
bcm5719-llvm-999a25ff7283bd83f105ffb826b85181a30ffa41.zip
[CFG] Add LoopExit information to CFG
This patch introduces a new CFG element CFGLoopExit that indicate when a loop ends. It does not deal with returnStmts yet (left it as a TODO). It hidden behind a new analyzer-config flag called cfg-loopexit (false by default). Test cases added. The main purpose of this patch right know is to make loop unrolling and loop widening easier and more efficient. However, this information can be useful for future improvements in the StaticAnalyzer core too. Differential Revision: https://reviews.llvm.org/D35668 llvm-svn: 311235
Diffstat (limited to 'clang/test/Analysis/analyzer-config.c')
-rw-r--r--clang/test/Analysis/analyzer-config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Analysis/analyzer-config.c b/clang/test/Analysis/analyzer-config.c
index 7bed7cb5e3b..4daea898ecd 100644
--- a/clang/test/Analysis/analyzer-config.c
+++ b/clang/test/Analysis/analyzer-config.c
@@ -14,6 +14,7 @@ void foo() {
// CHECK-NEXT: cfg-conditional-static-initializers = true
// CHECK-NEXT: cfg-implicit-dtors = true
// CHECK-NEXT: cfg-lifetime = false
+// CHECK-NEXT: cfg-loopexit = false
// CHECK-NEXT: cfg-temporary-dtors = false
// CHECK-NEXT: faux-bodies = true
// CHECK-NEXT: graph-trim-interval = 1000
@@ -30,4 +31,4 @@ void foo() {
// CHECK-NEXT: unroll-loops = false
// CHECK-NEXT: widen-loops = false
// CHECK-NEXT: [stats]
-// CHECK-NEXT: num-entries = 18
+// CHECK-NEXT: num-entries = 19
OpenPOWER on IntegriCloud