Imported Upstream version 5.18.0.207

Former-commit-id: 3b152f462918d427ce18620a2cbe4f8b79650449
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-11-17 08:23:10 +00:00
parent 8e12397d70
commit eb85e2fc17
28480 changed files with 72 additions and 3866936 deletions

View File

@@ -1,22 +0,0 @@
; RUN: opt -regions < %s
; RUN: opt < %s -passes='print<regions>'
define i32 @main() nounwind {
entry:
br label %for.cond
test:
br label %for.cond
for.cond: ; preds = %for.inc, %entry
br i1 true, label %for.body, label %for.end
for.body: ; preds = %for.cond
br label %for.inc
for.inc: ; preds = %for.body
br label %for.cond
for.end: ; preds = %for.cond
ret i32 0
}

View File

@@ -1,43 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s | FileCheck %s
; While working on improvements to the region info analysis, this test
; case caused an incorrect region 3 => 8 to be detected.
define internal i8 @wibble() {
bb:
br i1 true, label %bb1, label %bb8
bb1: ; preds = %bb
switch i32 0, label %bb2 [
i32 0, label %bb3
i32 1, label %bb7
]
bb2: ; preds = %bb1
br label %bb4
bb3: ; preds = %bb1
br label %bb5
bb4: ; preds = %bb2
br label %bb6
bb5: ; preds = %bb3
br label %bb6
bb6: ; preds = %bb5, %bb4
br label %bb7
bb7: ; preds = %bb6, %bb1
br label %bb8
bb8: ; preds = %bb7, %bb
ret i8 1
}
; CHECK: [0] bb => <Function Return>
; CHECK-NEXT: [1] bb => bb8
; CHECK-NEXT: [2] bb1 => bb7
; CHECK-NEXT: End region tree

View File

@@ -1,45 +0,0 @@
; REQUIRES: asserts
; 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
; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %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,

View File

@@ -1,36 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s | FileCheck %s
; RUN: opt -regions -stats -disable-output < %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
; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %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,

View File

@@ -1,63 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s | FileCheck %s
; RUN: opt -regions -stats -disable-output < %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
; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %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,

View File

@@ -1,47 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s | FileCheck %s
; RUN: opt -regions -stats -disable-output < %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
; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %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,

View File

@@ -1,29 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s | FileCheck %s
; RUN: opt -regions -stats -disable-output < %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
; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %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,

View File

@@ -1,34 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s | FileCheck %s
; RUN: opt -regions -stats -disable-output < %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
; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %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,

View File

@@ -1,31 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s | FileCheck %s
; RUN: opt -regions -stats -disable-output < %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
; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %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,

View File

@@ -1,41 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s | FileCheck %s
; RUN: opt -regions -stats -disable-output < %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
; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %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,

View File

@@ -1,19 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s
; RUN: opt -regions -stats -disable-output < %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>
; STAT: 1 region - The # of regions

View File

@@ -1,34 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s
; RUN: opt -regions -stats -disable-output < %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-NOT: [1]
; STAT: 1 region - The # of regions
; BBIT: 0, 1, 2, 5, 11, 6, 12, 3, 4,
; RNIT: 0, 1, 2, 5, 11, 6, 12, 3, 4,

View File

@@ -1,47 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s
; RUN: opt -regions -stats -disable-output < %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-NOT: [1]
; STAT: 1 region - The # of regions
; BBIT: 0, 7, 1, 2, 5, 11, 6, 12, 3, 4, 8, 9, 13, 10, 14,
; RNIT: 0, 7, 1, 2, 5, 11, 6, 12, 3, 4, 8, 9, 13, 10, 14,

View File

@@ -1,51 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s
; RUN: opt -regions -stats -disable-output < %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] 2 => 10
; CHECK_NEXT: [2] 5 => 6
; STAT: 3 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: 2, 5, 11, 6, 12,
; BBIT: 5, 11, 12,
; RNIT: 0, 7, 1, 2 => 10, 10, 8, 9, 13, 14, 3, 4,
; RNIT: 2, 5 => 6, 6,
; RNIT: 5, 11, 12,

View File

@@ -1,22 +0,0 @@
; RUN: opt -regions -analyze < %s | FileCheck %s
define void @normal_condition() nounwind {
0:
br label %"7"
7:
br i1 1, label %"1", label %"8"
1:
br i1 1, label %"6", label %"3"
6:
br label %"8"
8:
br label %"8"
3:
br label %"4"
4:
ret void
}
; CHECK: Region tree:
; CHECK-NEXT: [0] 0 => <Function Return>
; CHECK-NEXT: End region tree

View File

@@ -1,24 +0,0 @@
; RUN: opt -regions -analyze < %s | FileCheck %s
define void @normal_condition() nounwind {
0:
br label %"7"
7:
br i1 1, label %"1", label %"9"
9:
br label %"8"
1:
br i1 1, label %"6", label %"3"
6:
br label %"9"
8:
br label %"8"
3:
br label %"4"
4:
ret void
}
; CHECK: Region tree:
; CHECK-NEXT: [0] 0 => <Function Return>
; CHECK-NEXT: End region tree

View File

@@ -1,22 +0,0 @@
; RUN: opt -regions -analyze < %s | FileCheck %s
define void @normal_condition() nounwind {
0:
br label %"7"
7:
br i1 1, label %"1", label %"8"
1:
br i1 1, label %"6", label %"3"
6:
br label %"8"
8:
br i1 1, label %"8", label %"7"
3:
br label %"4"
4:
ret void
}
; CHECK: [0] 0 => <Function Return>
; CHECK-NEXT: [1] 7 => 3
; CHECK-NEXT: [2] 8 => 7

View File

@@ -1,49 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s | FileCheck %s
; RUN: opt -regions -stats -disable-output < %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
; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %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,

View File

@@ -1,43 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s | FileCheck %s
; RUN: opt -regions -stats -disable-output < %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
; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %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,

View File

@@ -1,52 +0,0 @@
; REQUIRES: asserts
; RUN: opt -regions -analyze < %s | FileCheck %s
; RUN: opt -regions -stats -disable-output < %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
; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %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,

Some files were not shown because too many files have changed in this diff Show More