llvm.org GIT mirror llvm / 04cfb01
Add missing test for r366215 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366218 91177308-0d34-0410-b5e6-96231b3b80d8 Amara Emerson a month ago
1 changed file(s) with 71 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: opt < %s -adce --preserve-ll-uselistorder -S | FileCheck %s
1
2 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
3 target triple = "x86_64-apple-macosx10.10.0"
4
5 ; CHECK: uselistorder label %bb16, { 1, 0 }
6 ; Function Attrs: noinline nounwind ssp uwtable
7 define void @ham() local_unnamed_addr #0 {
8 bb:
9 br i1 false, label %bb1, label %bb22
10
11 bb1: ; preds = %bb
12 br i1 undef, label %bb2, label %bb20
13
14 bb2: ; preds = %bb1
15 br label %bb5
16
17 bb5: ; preds = %bb16, %bb2
18 br i1 undef, label %bb6, label %bb17
19
20 bb6: ; preds = %bb5
21 br i1 undef, label %bb7, label %bb16
22
23 bb7: ; preds = %bb6
24 br i1 undef, label %bb9, label %bb8
25
26 bb8: ; preds = %bb7
27 br i1 undef, label %bb9, label %bb10
28
29 bb9: ; preds = %bb8, %bb7
30 br label %bb13
31
32 bb10: ; preds = %bb8
33 br label %bb12
34
35 bb12: ; preds = %bb10
36 br label %bb13
37
38 bb13: ; preds = %bb12, %bb9
39 br label %bb14
40
41 bb14: ; preds = %bb13
42 br label %bb15
43
44 bb15: ; preds = %bb14
45 br label %bb16
46
47 bb16: ; preds = %bb15, %bb6
48 br label %bb5
49
50 bb17: ; preds = %bb5
51 br label %bb19
52
53 bb19: ; preds = %bb17
54 br label %bb21
55
56 bb20: ; preds = %bb1
57 br label %bb21
58
59 bb21: ; preds = %bb20, %bb19
60 br label %bb22
61
62 bb22: ; preds = %bb21, %bb
63 ret void
64 }
65
66 attributes #0 = { noinline nounwind ssp uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="core2" "target-features"="+cx16,+fxsr,+mmx,+sse,+sse2,+sse3,+ssse3,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
67
68 !llvm.module.flags = !{!0}
69
70 !0 = !{i32 7, !"PIC Level", i32 2}