aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/RegionInfo/Stats
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/RegionInfo/Stats')
-rw-r--r--test/Analysis/RegionInfo/Stats/block_sort.ll42
-rw-r--r--test/Analysis/RegionInfo/Stats/cond_loop.ll33
-rw-r--r--test/Analysis/RegionInfo/Stats/condition_complicated.ll60
-rw-r--r--test/Analysis/RegionInfo/Stats/condition_complicated_2.ll44
-rw-r--r--test/Analysis/RegionInfo/Stats/condition_forward_edge.ll26
-rw-r--r--test/Analysis/RegionInfo/Stats/condition_same_exit.ll31
-rw-r--r--test/Analysis/RegionInfo/Stats/condition_simple.ll28
-rw-r--r--test/Analysis/RegionInfo/Stats/exit_in_condition.ll38
-rw-r--r--test/Analysis/RegionInfo/Stats/infinite_loop.ll20
-rw-r--r--test/Analysis/RegionInfo/Stats/infinite_loop_2.ll36
-rw-r--r--test/Analysis/RegionInfo/Stats/infinite_loop_3.ll52
-rw-r--r--test/Analysis/RegionInfo/Stats/infinite_loop_4.ll48
-rw-r--r--test/Analysis/RegionInfo/Stats/lit.local.cfg4
-rw-r--r--test/Analysis/RegionInfo/Stats/loop_with_condition.ll46
-rw-r--r--test/Analysis/RegionInfo/Stats/loops_1.ll40
-rw-r--r--test/Analysis/RegionInfo/Stats/loops_2.ll49
-rw-r--r--test/Analysis/RegionInfo/Stats/mix_1.ll69
-rw-r--r--test/Analysis/RegionInfo/Stats/nested_loops.ll33
-rw-r--r--test/Analysis/RegionInfo/Stats/next.ll49
-rw-r--r--test/Analysis/RegionInfo/Stats/paper.ll55
-rw-r--r--test/Analysis/RegionInfo/Stats/two_loops_same_header.ll46
21 files changed, 0 insertions, 849 deletions
diff --git a/test/Analysis/RegionInfo/Stats/block_sort.ll b/test/Analysis/RegionInfo/Stats/block_sort.ll
deleted file mode 100644
index ac77ab36e6..0000000000
--- a/test/Analysis/RegionInfo/Stats/block_sort.ll
+++ /dev/null
@@ -1,42 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats -analyze < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @BZ2_blockSort() nounwind {
-start:
- br label %while
-
-while:
- br label %while.body134.i.i
-
-while.body134.i.i:
- br i1 1, label %end, label %w
-
-w:
- br label %if.end140.i.i
-
-if.end140.i.i:
- br i1 1, label %while.end186.i.i, label %if.end183.i.i
-
-if.end183.i.i:
- br label %while.body134.i.i
-
-while.end186.i.i:
- br label %while
-
-end:
- ret void
-}
-; CHECK-NOT: =>
-; CHECK: [0] start => <Function Return>
-; CHECK: [1] while => end
-
-; STAT: 2 region - The # of regions
-; STAT: 1 region - The # of simple regions
-
-; BBIT: start, while, while.body134.i.i, end, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,
-; BBIT: while, while.body134.i.i, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,
-
-; RNIT: start, while => end, end,
-; RNIT: while, while.body134.i.i, w, if.end140.i.i, while.end186.i.i, if.end183.i.i,
diff --git a/test/Analysis/RegionInfo/Stats/cond_loop.ll b/test/Analysis/RegionInfo/Stats/cond_loop.ll
deleted file mode 100644
index 1145ffdba0..0000000000
--- a/test/Analysis/RegionInfo/Stats/cond_loop.ll
+++ /dev/null
@@ -1,33 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @normal_condition() nounwind {
-5:
- br label %"0"
-
-0:
- br label %"1"
-1:
- br i1 1, label %"2", label %"3"
-2:
- ret void
-3:
- br i1 1, label %"1", label %"4"
-4:
- br label %"0"
-}
-
-; CHECK-NOT: =>
-; CHECK: [0] 5 => <Function Return>
-; CHECK: [1] 0 => 2
-
-; STAT: 2 region - The # of regions
-; STAT: 1 region - The # of simple regions
-
-; BBIT: 5, 0, 1, 2, 3, 4,
-; BBIT: 0, 1, 3, 4,
-
-; RNIT: 5, 0 => 2, 2,
-; RNIT: 0, 1, 3, 4,
diff --git a/test/Analysis/RegionInfo/Stats/condition_complicated.ll b/test/Analysis/RegionInfo/Stats/condition_complicated.ll
deleted file mode 100644
index 6b398800db..0000000000
--- a/test/Analysis/RegionInfo/Stats/condition_complicated.ll
+++ /dev/null
@@ -1,60 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define internal fastcc zeroext i8 @handle_compress() nounwind {
-end165:
- br i1 1, label %false239, label %true181
-
-true181:
- br i1 1, label %then187, label %else232
-
-then187:
- br label %end265
-
-else232:
- br i1 1, label %false239, label %then245
-
-false239:
- br i1 1, label %then245, label %else259
-
-then245:
- br i1 1, label %then251, label %end253
-
-then251:
- br label %end253
-
-end253:
- br label %end265
-
-else259:
- br label %end265
-
-end265:
- br i1 1, label %then291, label %end298
-
-then291:
- br label %end298
-
-end298:
- ret i8 1
-}
-
-; CHECK-NOT: =>
-; CHECK: [0] end165 => <Function Return>
-; CHECK-NEXT: [1] end165 => end265
-; CHECK-NEXT: [2] then245 => end253
-; CHECK-NEXT: [1] end265 => end298
-
-; STAT: 4 region - The # of regions
-
-; BBIT: end165, false239, then245, then251, end253, end265, then291, end298, else259, true181, then187, else232,
-; BBIT: end165, false239, then245, then251, end253, else259, true181, then187, else232,
-; BBIT: then245, then251,
-; BBIT: end265, then291,
-
-; RNIT: end165 => end265, end265 => end298, end298,
-; RNIT: end165, false239, then245 => end253, end253, else259, true181, then187, else232,
-; RNIT: then245, then251,
-; RNIT: end265, then291,
diff --git a/test/Analysis/RegionInfo/Stats/condition_complicated_2.ll b/test/Analysis/RegionInfo/Stats/condition_complicated_2.ll
deleted file mode 100644
index f551108d60..0000000000
--- a/test/Analysis/RegionInfo/Stats/condition_complicated_2.ll
+++ /dev/null
@@ -1,44 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define internal fastcc void @compress() nounwind {
-end33:
- br i1 1, label %end124, label %lor.lhs.false95
-
-lor.lhs.false95:
- br i1 1, label %then107, label %end172
-
-then107:
- br i1 1, label %end124, label %then113
-
-then113:
- br label %end124
-
-end124:
- br label %exit
-
-end172:
- br label %exit
-
-
-exit:
- unreachable
-
-
-}
-; CHECK-NOT: =>
-; CHECK: [0] end33 => <Function Return>
-; CHECK-NEXT: [1] end33 => exit
-; CHECK-NEXT: [2] then107 => end124
-
-; STAT: 3 region - The # of regions
-
-; BBIT: end33, end124, exit, lor.lhs.false95, then107, then113, end172,
-; BBIT: end33, end124, lor.lhs.false95, then107, then113, end172,
-; BBIT: then107, then113,
-
-; RNIT: end33 => exit, exit,
-; RNIT: end33, end124, lor.lhs.false95, then107 => end124, end172,
-; RNIT: then107, then113,
diff --git a/test/Analysis/RegionInfo/Stats/condition_forward_edge.ll b/test/Analysis/RegionInfo/Stats/condition_forward_edge.ll
deleted file mode 100644
index 5e4d9d2f8b..0000000000
--- a/test/Analysis/RegionInfo/Stats/condition_forward_edge.ll
+++ /dev/null
@@ -1,26 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @normal_condition() nounwind {
-0:
- br label %"1"
-1:
- br i1 1, label %"2", label %"3"
-2:
- br label %"3"
-3:
- ret void
-}
-; CHECK-NOT: =>
-; CHECK: [0] 0 => <Function Return>
-; CHECK: [1] 1 => 3
-
-; STAT: 2 region - The # of regions
-
-; BBIT: 0, 1, 2, 3,
-; BBIT: 1, 2,
-
-; RNIT: 0, 1 => 3, 3,
-; RNIT: 1, 2,
diff --git a/test/Analysis/RegionInfo/Stats/condition_same_exit.ll b/test/Analysis/RegionInfo/Stats/condition_same_exit.ll
deleted file mode 100644
index e48413a4c2..0000000000
--- a/test/Analysis/RegionInfo/Stats/condition_same_exit.ll
+++ /dev/null
@@ -1,31 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @normal_condition() nounwind {
-0:
- br i1 1, label %"1", label %"4"
-
-1:
- br i1 1, label %"2", label %"3"
-2:
- br label %"4"
-3:
- br label %"4"
-4:
- ret void
-}
-; CHECK-NOT: =>
-; CHECK: [0] 0 => <Function Return>
-; CHECK-NEXT: [1] 0 => 4
-; CHECK-NEXT: [2] 1 => 4
-; STAT: 3 region - The # of regions
-
-; BBIT: 0, 1, 2, 4, 3,
-; BBIT: 0, 1, 2, 3,
-; BBIT: 1, 2, 3,
-
-; RNIT: 0 => 4, 4,
-; RNIT: 0, 1 => 4,
-; RNIT: 1, 2, 3,
diff --git a/test/Analysis/RegionInfo/Stats/condition_simple.ll b/test/Analysis/RegionInfo/Stats/condition_simple.ll
deleted file mode 100644
index 00d9ed24e1..0000000000
--- a/test/Analysis/RegionInfo/Stats/condition_simple.ll
+++ /dev/null
@@ -1,28 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @normal_condition() nounwind {
-0:
- br label %"1"
-1:
- br i1 1, label %"2", label %"3"
-2:
- br label %"4"
-3:
- br label %"4"
-4:
- ret void
-}
-
-; CHECK-NOT: =>
-; CHECK: [0] 0 => <Function Return>
-; CHECK-NEXT: [1] 1 => 4
-; STAT: 2 region - The # of regions
-
-; BBIT: 0, 1, 2, 4, 3,
-; BBIT: 1, 2, 3,
-
-; RNIT: 0, 1 => 4, 4,
-; RNIT: 1, 2, 3,
diff --git a/test/Analysis/RegionInfo/Stats/exit_in_condition.ll b/test/Analysis/RegionInfo/Stats/exit_in_condition.ll
deleted file mode 100644
index b84abecc16..0000000000
--- a/test/Analysis/RegionInfo/Stats/exit_in_condition.ll
+++ /dev/null
@@ -1,38 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define internal fastcc zeroext i8 @handle_compress() nounwind {
-entry:
- br label %outer
-
-outer:
- br label %body
-
-body:
- br i1 1, label %body.i, label %if.end
-
-body.i:
- br i1 1, label %end, label %if.end
-
-if.end:
- br label %if.then64
-
-if.then64:
- br label %outer
-
-end:
- ret i8 1
-}
-; CHECK-NOT: =>
-; CHECK: [0] entry => <Function Return>
-; CHECK-NEXT: [1] outer => end
-; STAT: 2 region - The # of regions
-; STAT: 1 region - The # of simple regions
-
-; BBIT: entry, outer, body, body.i, end, if.end, if.then64,
-; BBIT: outer, body, body.i, if.end, if.then64,
-
-; RNIT: entry, outer => end, end,
-; RNIT: outer, body, body.i, if.end, if.then64,
diff --git a/test/Analysis/RegionInfo/Stats/infinite_loop.ll b/test/Analysis/RegionInfo/Stats/infinite_loop.ll
deleted file mode 100644
index 8e588286a5..0000000000
--- a/test/Analysis/RegionInfo/Stats/infinite_loop.ll
+++ /dev/null
@@ -1,20 +0,0 @@
-; RUN: opt -regions -analyze < %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-
-define void @normal_condition() nounwind {
-0:
- br label %"1"
-1:
- br i1 1, label %"2", label %"3"
-2:
- br label %"2"
-3:
- br label %"4"
-4:
- ret void
-}
-; CHECK-NOT: =>
-; CHECK: [0] 0 => <Function Return>
-; CHECK: [1] 1 => 4
-; STAT: 2 region - The # of regions
-; STAT: 1 region - The # of simple regions
diff --git a/test/Analysis/RegionInfo/Stats/infinite_loop_2.ll b/test/Analysis/RegionInfo/Stats/infinite_loop_2.ll
deleted file mode 100644
index a8227e340c..0000000000
--- a/test/Analysis/RegionInfo/Stats/infinite_loop_2.ll
+++ /dev/null
@@ -1,36 +0,0 @@
-; RUN: opt -regions -analyze < %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @normal_condition() nounwind {
-0:
- br label %"1"
-1:
- br i1 1, label %"2", label %"3"
-2:
- br label %"5"
-5:
- br i1 1, label %"11", label %"12"
-11:
- br label %"6"
-12:
- br label %"6"
-6:
- br label %"2"
-3:
- br label %"4"
-4:
- ret void
-}
-; CHECK-NOT: =>
-; CHECK: [0] 0 => <Function Return>
-; CHECK: [1] 1 => 3
-; STAT: 2 region - The # of regions
-; STAT: 1 region - The # of simple regions
-
-; BBIT: 0, 1, 2, 5, 11, 6, 12, 3, 4,
-; BBIT: 1, 2, 5, 11, 6, 12,
-
-; RNIT: 0, 1 => 3, 3, 4,
-; RNIT: 1, 2, 5, 11, 6, 12,
diff --git a/test/Analysis/RegionInfo/Stats/infinite_loop_3.ll b/test/Analysis/RegionInfo/Stats/infinite_loop_3.ll
deleted file mode 100644
index b09c9c1e59..0000000000
--- a/test/Analysis/RegionInfo/Stats/infinite_loop_3.ll
+++ /dev/null
@@ -1,52 +0,0 @@
-; RUN: opt -regions -analyze < %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @normal_condition() nounwind {
-0:
- br label %"7"
-7:
- br i1 1, label %"1", label %"8"
-1:
- br i1 1, label %"2", label %"3"
-2:
- br label %"5"
-5:
- br i1 1, label %"11", label %"12"
-11:
- br label %"6"
-12:
- br label %"6"
-6:
- br label %"2"
-8:
- br label %"9"
-9:
- br i1 1, label %"13", label %"14"
-13:
- br label %"10"
-14:
- br label %"10"
-10:
- br label %"8"
-3:
- br label %"4"
-4:
- ret void
-}
-; CHECK-NOT: =>
-; CHECK: [0] 0 => <Function Return>
-; CHECK-NEXT: [1] 1 => 3
-; CHECK-NEXT: [1] 7 => 1
-; STAT: 3 region - The # of regions
-; STAT: 2 region - The # of simple regions
-
-; BBIT: 0, 7, 1, 2, 5, 11, 6, 12, 3, 4, 8, 9, 13, 10, 14,
-; BBIT: 7, 8, 9, 13, 10, 14,
-; BBIT: 1, 2, 5, 11, 6, 12,
-
-; RNIT: 0, 7 => 1, 1 => 3, 3, 4,
-; RNIT: 7, 8, 9, 13, 10, 14,
-; RNIT: 1, 2, 5, 11, 6, 12,
diff --git a/test/Analysis/RegionInfo/Stats/infinite_loop_4.ll b/test/Analysis/RegionInfo/Stats/infinite_loop_4.ll
deleted file mode 100644
index 681c305ce9..0000000000
--- a/test/Analysis/RegionInfo/Stats/infinite_loop_4.ll
+++ /dev/null
@@ -1,48 +0,0 @@
-; RUN: opt -regions -analyze < %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @normal_condition() nounwind {
-0:
- br label %"7"
-7:
- br i1 1, label %"1", label %"8"
-1:
- br i1 1, label %"2", label %"3"
-2:
- br label %"5"
-5:
- br i1 1, label %"11", label %"12"
-11:
- br label %"6"
-12:
- br label %"6"
-6:
- br i1 1, label %"2", label %"10"
-8:
- br label %"9"
-9:
- br i1 1, label %"13", label %"14"
-13:
- br label %"10"
-14:
- br label %"10"
-10:
- br label %"8"
-3:
- br label %"4"
-4:
- ret void
-}
-; CHECK-NOT: =>
-; CHECK: [0] 0 => <Function Return>
-; CHECK-NEXT: [1] 7 => 3
-; STAT: 2 region - The # of regions
-; STAT: 1 region - The # of simple regions
-
-; BBIT: 0, 7, 1, 2, 5, 11, 6, 10, 8, 9, 13, 14, 12, 3, 4,
-; BBIT: 7, 1, 2, 5, 11, 6, 10, 8, 9, 13, 14, 12,
-
-; RNIT: 0, 7 => 3, 3, 4,
-; RNIT: 7, 1, 2, 5, 11, 6, 10, 8, 9, 13, 14, 12,
diff --git a/test/Analysis/RegionInfo/Stats/lit.local.cfg b/test/Analysis/RegionInfo/Stats/lit.local.cfg
deleted file mode 100644
index 89c0cd9d48..0000000000
--- a/test/Analysis/RegionInfo/Stats/lit.local.cfg
+++ /dev/null
@@ -1,4 +0,0 @@
-config.suffixes = ['.ll', '.c', '.cpp']
-
-if not config.root.enable_assertions:
- config.unsupported = True
diff --git a/test/Analysis/RegionInfo/Stats/loop_with_condition.ll b/test/Analysis/RegionInfo/Stats/loop_with_condition.ll
deleted file mode 100644
index 08d2ba8e35..0000000000
--- a/test/Analysis/RegionInfo/Stats/loop_with_condition.ll
+++ /dev/null
@@ -1,46 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @normal_condition() nounwind {
-0:
- br label %"1"
-1:
- br i1 1, label %"6", label %"2"
-2:
- br i1 1, label %"3", label %"4"
-3:
- br label %"5"
-4:
- br label %"5"
-5:
- br label %"8"
-8:
- br i1 1, label %"7", label %"9"
-9:
- br label %"2"
-7:
- br label %"6"
-6:
- ret void
-}
-
-; CHECK-NOT: =>
-; CHECK: [0] 0 => <Function Return>
-; CHECK-NEXT: [1] 1 => 6
-; CHECK-NEXT: [2] 2 => 7
-; CHECK-NEXT: [3] 2 => 5
-; STAT: 4 region - The # of regions
-; STAT: 1 region - The # of simple regions
-
-; BBIT: 0, 1, 6, 2, 3, 5, 8, 7, 9, 4,
-; BBIT: 1, 2, 3, 5, 8, 7, 9, 4,
-; BBIT: 2, 3, 5, 8, 9, 4,
-; BBIT: 2, 3, 4,
-
-; RNIT: 0, 1 => 6, 6,
-; RNIT: 1, 2 => 7, 7,
-; RNIT: 2 => 5, 5, 8, 9,
-; RNIT: 2, 3, 4,
diff --git a/test/Analysis/RegionInfo/Stats/loops_1.ll b/test/Analysis/RegionInfo/Stats/loops_1.ll
deleted file mode 100644
index 6449949df8..0000000000
--- a/test/Analysis/RegionInfo/Stats/loops_1.ll
+++ /dev/null
@@ -1,40 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define internal fastcc zeroext i8 @loops_1() nounwind {
-entry:
- br i1 1, label %outer , label %a
-
-a:
- br label %body
-
-outer:
- br label %body
-
-body:
- br i1 1, label %land, label %if
-
-land:
- br i1 1, label %exit, label %end
-
-exit:
- br i1 1, label %if, label %end
-
-if:
- br label %outer
-
-end:
- ret i8 1
-}
-; CHECK-NOT: =>
-; CHECK: [0] entry => <Function Return>
-; CHECK-NEXT: [1] entry => end
-; STAT: 2 region - The # of regions
-
-; BBIT: entry, outer, body, land, exit, if, end, a,
-; BBIT: entry, outer, body, land, exit, if, a,
-
-; RNIT: entry => end, end,
-; RNIT: entry, outer, body, land, exit, if, a,
diff --git a/test/Analysis/RegionInfo/Stats/loops_2.ll b/test/Analysis/RegionInfo/Stats/loops_2.ll
deleted file mode 100644
index dc4a1adffb..0000000000
--- a/test/Analysis/RegionInfo/Stats/loops_2.ll
+++ /dev/null
@@ -1,49 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @meread_() nounwind {
-entry:
- br label %bb23
-
-bb23:
- br label %bb.i
-
-bb.i: ; preds = %bb.i, %bb54
- br label %pflini_.exit
-
-pflini_.exit: ; preds = %bb.i
- br label %bb58thread-split
-
-bb58thread-split: ; preds = %bb64, %bb61, %pflini_.exit
- br label %bb58
-
-bb58: ; preds = %bb60, %bb58thread-split
- br i1 1, label %bb59, label %bb23
-
-bb59: ; preds = %bb58
- switch i32 1, label %bb60 [
- i32 1, label %l98
- ]
-
-bb60: ; preds = %bb59
- br i1 1, label %bb61, label %bb58
-
-bb61: ; preds = %bb60
- br label %bb58thread-split
-
-l98: ; preds = %bb69, %bb59
- ret void
-}
-; CHECK-NOT: =>
-; CHECK: [0] entry => <Function Return>
-; CHECK: [1] bb23 => l98
-; STAT: 2 region - The # of regions
-; STAT: 1 region - The # of simple regions
-
-; BBIT: entry, bb23, bb.i, pflini_.exit, bb58thread-split, bb58, bb59, bb60, bb61, l98,
-; BBIT: bb23, bb.i, pflini_.exit, bb58thread-split, bb58, bb59, bb60, bb61,
-
-; RNIT: entry, bb23 => l98, l98,
-; RNIT: bb23, bb.i, pflini_.exit, bb58thread-split, bb58, bb59, bb60, bb61,
diff --git a/test/Analysis/RegionInfo/Stats/mix_1.ll b/test/Analysis/RegionInfo/Stats/mix_1.ll
deleted file mode 100644
index 1474e033e5..0000000000
--- a/test/Analysis/RegionInfo/Stats/mix_1.ll
+++ /dev/null
@@ -1,69 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @a_linear_impl_fig_1() nounwind {
-0:
-
- br i1 1, label %"1", label %"15"
-1:
- switch i32 0, label %"2" [ i32 0, label %"3"
- i32 1, label %"7"]
-2:
- br label %"4"
-3:
- br label %"5"
-4:
- br label %"6"
-5:
- br label %"6"
-6:
- br label %"7"
-7:
- br label %"15"
-15:
- br label %"8"
-8:
- br label %"16"
-16:
- br label %"9"
-9:
- br i1 1, label %"10", label %"11"
-11:
- br i1 1, label %"13", label %"12"
-13:
- br label %"14"
-12:
- br label %"14"
-14:
- br label %"8"
-10:
- br label %"17"
-17:
- br label %"18"
-18:
- ret void
-}
-
-; CHECK-NOT: =>
-; CHECK: [0] 0 => <Function Return>
-; CHECK-NEXT: [1] 0 => 15
-; CHECK-NEXT: [2] 1 => 7
-; CHECK-NEXT: [1] 8 => 10
-; CHECK-NEXT: [2] 11 => 14
-; STAT: 5 region - The # of regions
-; STAT: 1 region - The # of simple regions
-
-; BBIT: 0, 1, 2, 4, 6, 7, 15, 8, 16, 9, 10, 17, 18, 11, 13, 14, 12, 3, 5,
-; BBIT: 0, 1, 2, 4, 6, 7, 3, 5,
-; BBIT: 1, 2, 4, 6, 3, 5,
-; BBIT: 8, 16, 9, 11, 13, 14, 12,
-; BBIT: 11, 13, 12,
-
-; RNIT: 0 => 15, 15, 8 => 10, 10, 17, 18,
-; RNIT: 0, 1 => 7, 7,
-; RNIT: 1, 2, 4, 6, 3, 5,
-; RNIT: 8, 16, 9, 11 => 14, 14,
-; RNIT: 11, 13, 12,
diff --git a/test/Analysis/RegionInfo/Stats/nested_loops.ll b/test/Analysis/RegionInfo/Stats/nested_loops.ll
deleted file mode 100644
index a3707a1987..0000000000
--- a/test/Analysis/RegionInfo/Stats/nested_loops.ll
+++ /dev/null
@@ -1,33 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define internal fastcc zeroext i8 @handle_compress() nounwind {
-entry:
- br label %outer
-
-outer:
- br label %body
-
-body:
- br i1 1, label %exit172, label %end
-
-exit172:
- br i1 1, label %end, label %outer
-
-end:
- ret i8 1
-}
-; CHECK-NOT: =>
-; CHECK: [0] entry => <Function Return>
-; CHECK-NEXT: [1] outer => end
-
-; STAT: 2 region - The # of regions
-
-; BBIT: entry, outer, body, exit172, end,
-; BBIT: outer, body, exit172,
-
-; RNIT: entry, outer => end, end,
-; RNIT: outer, body, exit172,
diff --git a/test/Analysis/RegionInfo/Stats/next.ll b/test/Analysis/RegionInfo/Stats/next.ll
deleted file mode 100644
index 890b4f2300..0000000000
--- a/test/Analysis/RegionInfo/Stats/next.ll
+++ /dev/null
@@ -1,49 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @MAIN__() nounwind {
-entry:
- br label %__label_002001.outer
-
-__label_002001.outer: ; preds = %bb236, %bb92
- br label %__label_002001
-
-__label_002001: ; preds = %bb229, %__label_002001.outer
- br i1 1, label %bb93, label %__label_000020
-
-bb93: ; preds = %__label_002001
- br i1 1, label %__label_000020, label %bb197
-
-bb197: ; preds = %bb193
- br i1 1, label %bb229, label %bb224
-
-bb224: ; preds = %bb223, %bb227
- br i1 1, label %bb229, label %bb224
-
-bb229: ; preds = %bb227, %bb223
- br i1 1, label %__label_002001, label %__label_002001.outer
-
-__label_000020: ; preds = %__label_002001, %bb194
- ret void
-}
-
-; CHECK-NOT: =>
-; CHECK: [0] entry => <Function Return>
-; CHECK-NEXT: [1] __label_002001.outer => __label_000020
-; CHECK-NEXT: [2] bb197 => bb229
-; CHECK-NEXT: [3] bb224 => bb229
-
-; STAT: 4 region - The # of regions
-; STAT: 1 region - The # of simple regions
-
-; BBIT: entry, __label_002001.outer, __label_002001, bb93, __label_000020, bb197, bb229, bb224,
-; BBIT: __label_002001.outer, __label_002001, bb93, bb197, bb229, bb224,
-; BBIT: bb197, bb224,
-; BBIT: bb224,
-
-; RNIT: entry, __label_002001.outer => __label_000020, __label_000020,
-; RNIT: __label_002001.outer, __label_002001, bb93, bb197 => bb229, bb229,
-; RNIT: bb197, bb224 => bb229,
-; RNIT: bb224,
diff --git a/test/Analysis/RegionInfo/Stats/paper.ll b/test/Analysis/RegionInfo/Stats/paper.ll
deleted file mode 100644
index 96c87e0559..0000000000
--- a/test/Analysis/RegionInfo/Stats/paper.ll
+++ /dev/null
@@ -1,55 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define void @a_linear_impl_fig_1() nounwind {
-0:
- br label %"1"
-1:
- br label %"2"
-2:
- br label %"3"
-3:
- br i1 1, label %"13", label %"4"
-4:
- br i1 1, label %"5", label %"1"
-5:
- br i1 1, label %"8", label %"6"
-6:
- br i1 1, label %"7", label %"4"
-7:
- ret void
-8:
- br i1 1, label %"9", label %"1"
-9:
- br label %"10"
-10:
- br i1 1, label %"12", label %"11"
-11:
- br i1 1, label %"9", label %"8"
-13:
- br i1 1, label %"2", label %"1"
-12:
- switch i32 0, label %"1" [ i32 0, label %"9"
- i32 1, label %"8"]
-}
-
-; CHECK-NOT: =>
-; CHECK: [0] 0 => <Function Return>
-; CHECK-NEXT: [1] 1 => 7
-; CHECK-NEXT: [2] 1 => 4
-; CHECK-NEXT: [2] 8 => 1
-
-; STAT: 4 region - The # of regions
-; STAT: 1 region - The # of simple regions
-
-; BBIT: 0, 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6, 7,
-; BBIT: 1, 2, 3, 13, 4, 5, 8, 9, 10, 12, 11, 6,
-; BBIT: 1, 2, 3, 13,
-; BBIT: 8, 9, 10, 12, 11,
-
-; RNIT: 0, 1 => 7, 7,
-; RNIT: 1 => 4, 4, 5, 8 => 1, 6,
-; RNIT: 1, 2, 3, 13,
-; RNIT: 8, 9, 10, 12, 11,
diff --git a/test/Analysis/RegionInfo/Stats/two_loops_same_header.ll b/test/Analysis/RegionInfo/Stats/two_loops_same_header.ll
deleted file mode 100644
index e75661e890..0000000000
--- a/test/Analysis/RegionInfo/Stats/two_loops_same_header.ll
+++ /dev/null
@@ -1,46 +0,0 @@
-; RUN: opt -regions -analyze < %s | FileCheck %s
-; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s
-; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s
-; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s
-
-define internal fastcc zeroext i8 @handle_compress() nounwind {
-entry:
- br label %outer
-
-outer:
- br label %body
-
-body:
- br i1 1, label %else, label %true77
-
-true77:
- br i1 1, label %then83, label %else
-
-then83:
- br label %outer
-
-else:
- br label %else106
-
-else106:
- br i1 1, label %end, label %outer
-
-end:
- ret i8 1
-}
-
-; CHECK-NOT: =>
-; CHECK: [0] entry => <Function Return>
-; CHECK-NEXT: [1] outer => end
-; CHECK-NEXT: [2] outer => else
-
-; STAT: 3 region - The # of regions
-; STAT: 1 region - The # of simple regions
-
-; BBIT: entry, outer, body, else, else106, end, true77, then83,
-; BBIT: outer, body, else, else106, true77, then83,
-; BBIT: outer, body, true77, then83,
-
-; RNIT: entry, outer => end, end,
-; RNIT: outer => else, else, else106,
-; RNIT: outer, body, true77, then83,