brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 74ab165 Raw
38 lines · plain
1; RUN: opt < %s -loop-reduce2 3define void @resolve_name(i1 %arg, i8 %arg2) nounwind uwtable ssp {4  br label %while.cond40.preheader5while.cond132.while.cond.loopexit_crit_edge:6  br label %while.cond40.preheader7while.cond40.preheader:8  br label %while.cond409while.cond40:10  %indvars.iv194 = phi ptr [ null, %while.cond40.preheader ], [ %scevgep, %while.body51 ]11  %tmp.1 = phi ptr [ undef, %while.cond40.preheader ], [ %incdec.ptr, %while.body51 ]12  switch i8 %arg2, label %while.body51 [13    i8 0, label %if.then5914  ]15while.body51:                                     ; preds = %land.end5016  %incdec.ptr = getelementptr inbounds i8, ptr %tmp.1, i64 117  %scevgep = getelementptr i8, ptr %indvars.iv194, i64 118  br label %while.cond4019if.then59:                                        ; preds = %while.end20  br i1 %arg, label %if.then64, label %if.end11321if.then64:                                        ; preds = %if.then5922  %incdec.ptr88.tmp.2 = select i1 undef, ptr undef, ptr undef23  br label %if.end11324if.end113:                                        ; preds = %if.then64, %if.then5925  %tmp.4 = phi ptr [ %incdec.ptr88.tmp.2, %if.then64 ], [ undef, %if.then59 ]26  %tmp.4195 = ptrtoint ptr %tmp.4 to i6427  br  label %while.cond132.preheader28while.cond132.preheader:                          ; preds = %if.end11329  %cmp133173 = icmp eq ptr %tmp.1, %tmp.430  br i1 %cmp133173, label %while.cond40.preheader, label %while.body139.lr.ph31while.body139.lr.ph:                              ; preds = %while.cond132.preheader32  %scevgep198199 = ptrtoint ptr %indvars.iv194 to i6433  br label %while.body13934while.body139:                                    ; preds = %while.body139, %while.body139.lr.ph35  %start_of_var.0177 = phi ptr [ %tmp.1, %while.body139.lr.ph ], [ null, %while.body139 ]36  br i1 %arg, label %while.cond132.while.cond.loopexit_crit_edge, label %while.body13937}38