1 ; RUN: opt -loop-deletion -disable-output < %s
3 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
5 %0 = type { %"class.llvm::SmallVectorImpl", [1 x %"union.llvm::SmallVectorBase::U"] }
6 %"class.clang::SourceLocation" = type { i32 }
7 %"class.clang::driver::Arg" = type { %"class.clang::driver::Option"*, %"class.clang::driver::Arg"*, i32, i8, %0 }
8 %"class.clang::driver::Option" = type { i32 (...)**, i32, %"class.clang::SourceLocation", i8*, %"class.clang::driver::OptionGroup"*, %"class.clang::driver::Option"*, i8 }
9 %"class.clang::driver::OptionGroup" = type { %"class.clang::driver::Option" }
10 %"class.llvm::SmallVectorBase" = type { i8*, i8*, i8*, %"union.llvm::SmallVectorBase::U" }
11 %"class.llvm::SmallVectorImpl" = type { %"class.llvm::SmallVectorTemplateBase" }
12 %"class.llvm::SmallVectorTemplateBase" = type { %"class.llvm::SmallVectorTemplateCommon" }
13 %"class.llvm::SmallVectorTemplateCommon" = type { %"class.llvm::SmallVectorBase" }
14 %"union.llvm::SmallVectorBase::U" = type { x86_fp80 }
16 define void @_ZNK5clang6driver7ArgList20AddAllArgsTranslatedERN4llvm11SmallVectorIPKcLj16EEENS0_12OptSpecifierES5_b(i1 zeroext %Joined) nounwind align 2 {
18 br i1 undef, label %entry.split.us, label %entry.entry.split_crit_edge
20 entry.entry.split_crit_edge: ; preds = %entry
23 entry.split.us: ; preds = %entry
24 br label %for.cond.i14.us
26 for.cond.i14.us: ; preds = %for.inc.i38.us, %entry.split.us
27 br i1 true, label %for.cond.i50.us-lcssa.us, label %if.end.i23.us
29 for.inc.i38.us: ; preds = %if.end.i23.us
30 br label %for.cond.i14.us
32 if.end.i23.us: ; preds = %for.cond.i14.us
33 br i1 true, label %for.cond.i50.us-lcssa.us, label %for.inc.i38.us
35 for.cond.i50.us-lcssa.us: ; preds = %if.end.i23.us, %for.cond.i14.us
36 br label %for.cond.i50
38 entry.split: ; preds = %entry.entry.split_crit_edge
39 br label %for.cond.i14
41 for.cond.i14: ; preds = %for.inc.i38, %entry.split
42 br i1 undef, label %for.cond.i50.us-lcssa, label %if.end.i23
44 if.end.i23: ; preds = %for.cond.i14
45 br i1 undef, label %for.cond.i50.us-lcssa, label %for.inc.i38
47 for.inc.i38: ; preds = %if.end.i23
48 br label %for.cond.i14
50 for.cond.i50.us-lcssa: ; preds = %if.end.i23, %for.cond.i14
51 br label %for.cond.i50
53 for.cond.i50: ; preds = %for.cond.i50.us-lcssa, %for.cond.i50.us-lcssa.us
56 for.cond.loopexit.us-lcssa: ; preds = %if.end.i, %for.cond.i
57 br label %for.cond.loopexit
59 for.cond.loopexit: ; preds = %for.cond.loopexit.us-lcssa.us, %for.cond.loopexit.us-lcssa
62 for.cond: ; preds = %for.cond.loopexit, %for.cond.i50
63 br i1 undef, label %for.end, label %for.body
65 for.body: ; preds = %for.cond
66 br i1 %Joined, label %if.then, label %if.else
68 if.then: ; preds = %for.body
69 br i1 undef, label %cond.false.i.i, label %_ZN4llvm9StringRefC1EPKc.exit
71 cond.false.i.i: ; preds = %if.then
74 _ZN4llvm9StringRefC1EPKc.exit: ; preds = %if.then
75 br i1 undef, label %_ZNK5clang6driver3Arg8getValueERKNS0_7ArgListEj.exit, label %cond.false.i.i91
77 cond.false.i.i91: ; preds = %_ZN4llvm9StringRefC1EPKc.exit
80 _ZNK5clang6driver3Arg8getValueERKNS0_7ArgListEj.exit: ; preds = %_ZN4llvm9StringRefC1EPKc.exit
81 br i1 undef, label %cond.false.i.i.i, label %if.end13.i.i.i.i
83 if.end13.i.i.i.i: ; preds = %_ZNK5clang6driver3Arg8getValueERKNS0_7ArgListEj.exit
84 br i1 undef, label %land.lhs.true16.i.i.i.i, label %if.end19.i.i.i.i
86 land.lhs.true16.i.i.i.i: ; preds = %if.end13.i.i.i.i
87 br i1 undef, label %cond.false.i.i.i, label %_ZNK4llvm5Twine8isBinaryEv.exit8.i.i.i.i
89 _ZNK4llvm5Twine8isBinaryEv.exit8.i.i.i.i: ; preds = %land.lhs.true16.i.i.i.i
90 br i1 undef, label %cond.false.i.i.i, label %if.end19.i.i.i.i
92 if.end19.i.i.i.i: ; preds = %_ZNK4llvm5Twine8isBinaryEv.exit8.i.i.i.i, %if.end13.i.i.i.i
93 br i1 undef, label %land.lhs.true22.i.i.i.i, label %_ZN4llvmplERKNS_9StringRefEPKc.exit
95 land.lhs.true22.i.i.i.i: ; preds = %if.end19.i.i.i.i
96 br i1 undef, label %cond.false.i.i.i, label %_ZNK4llvm5Twine8isBinaryEv.exit.i.i.i.i
98 _ZNK4llvm5Twine8isBinaryEv.exit.i.i.i.i: ; preds = %land.lhs.true22.i.i.i.i
99 br i1 undef, label %cond.false.i.i.i, label %_ZN4llvmplERKNS_9StringRefEPKc.exit
101 cond.false.i.i.i: ; preds = %_ZNK4llvm5Twine8isBinaryEv.exit.i.i.i.i, %land.lhs.true22.i.i.i.i, %_ZNK4llvm5Twine8isBinaryEv.exit8.i.i.i.i, %land.lhs.true16.i.i.i.i, %_ZNK5clang6driver3Arg8getValueERKNS0_7ArgListEj.exit
104 _ZN4llvmplERKNS_9StringRefEPKc.exit: ; preds = %_ZNK4llvm5Twine8isBinaryEv.exit.i.i.i.i, %if.end19.i.i.i.i
105 br i1 undef, label %Retry.i, label %if.end.i99
107 Retry.i: ; preds = %if.end.i99, %_ZN4llvmplERKNS_9StringRefEPKc.exit
108 br i1 undef, label %_ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit, label %new.notnull.i
110 new.notnull.i: ; preds = %Retry.i
111 br label %_ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit
113 if.end.i99: ; preds = %_ZN4llvmplERKNS_9StringRefEPKc.exit
116 _ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit: ; preds = %new.notnull.i, %Retry.i
117 br label %for.cond.i.preheader
119 if.else: ; preds = %for.body
120 br i1 undef, label %Retry.i108, label %if.end.i113
122 Retry.i108: ; preds = %if.end.i113, %if.else
123 br i1 undef, label %_ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit114, label %new.notnull.i110
125 new.notnull.i110: ; preds = %Retry.i108
126 br label %_ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit114
128 if.end.i113: ; preds = %if.else
131 _ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit114: ; preds = %new.notnull.i110, %Retry.i108
132 br i1 undef, label %_ZNK5clang6driver3Arg8getValueERKNS0_7ArgListEj.exit125, label %cond.false.i.i123
134 cond.false.i.i123: ; preds = %_ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit114
137 _ZNK5clang6driver3Arg8getValueERKNS0_7ArgListEj.exit125: ; preds = %_ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit114
138 br i1 undef, label %Retry.i134, label %if.end.i139
140 Retry.i134: ; preds = %if.end.i139, %_ZNK5clang6driver3Arg8getValueERKNS0_7ArgListEj.exit125
141 br i1 undef, label %_ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit140, label %new.notnull.i136
143 new.notnull.i136: ; preds = %Retry.i134
144 br label %_ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit140
146 if.end.i139: ; preds = %_ZNK5clang6driver3Arg8getValueERKNS0_7ArgListEj.exit125
149 _ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit140: ; preds = %new.notnull.i136, %Retry.i134
150 br label %for.cond.i.preheader
152 for.cond.i.preheader: ; preds = %_ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit140, %_ZN4llvm15SmallVectorImplIPKcE9push_backERKS2_.exit
153 br i1 undef, label %for.cond.i.preheader.split.us, label %for.cond.i.preheader.for.cond.i.preheader.split_crit_edge
155 for.cond.i.preheader.for.cond.i.preheader.split_crit_edge: ; preds = %for.cond.i.preheader
156 br label %for.cond.i.preheader.split
158 for.cond.i.preheader.split.us: ; preds = %for.cond.i.preheader
159 br label %for.cond.i.us
161 for.cond.i.us: ; preds = %if.end.i.us, %for.cond.i.preheader.split.us
162 br i1 true, label %for.cond.loopexit.us-lcssa.us, label %if.end.i.us
164 if.end.i.us: ; preds = %for.cond.i.us
165 br i1 true, label %for.cond.loopexit.us-lcssa.us, label %for.cond.i.us
167 for.cond.loopexit.us-lcssa.us: ; preds = %if.end.i.us, %for.cond.i.us
168 %tmp178218.us.lcssa = phi %"class.clang::driver::Arg"** [ undef, %if.end.i.us ], [ undef, %for.cond.i.us ]
169 br label %for.cond.loopexit
171 for.cond.i.preheader.split: ; preds = %for.cond.i.preheader.for.cond.i.preheader.split_crit_edge
174 for.cond.i: ; preds = %if.end.i, %for.cond.i.preheader.split
175 br i1 undef, label %for.cond.loopexit.us-lcssa, label %if.end.i
177 if.end.i: ; preds = %for.cond.i
178 br i1 undef, label %for.cond.loopexit.us-lcssa, label %for.cond.i
180 for.end: ; preds = %for.cond