1 ; RUN: opt < %s -loop-deletion -S
2 ; RUN: opt < %s -loop-deletion -analyze -domtree 2>&1 | FileCheck -check-prefix=DT %s
3 ; RUN: opt < %s -loop-deletion -analyze -verify-dom-info
8 ; Verify only the important parts of the DomTree.
11 ; DT: [3] %lbl63A679E5
13 ; DT: [3] %lbl64774A9B
15 ; DT: [4] %for.cond3.loopexit
21 for.cond: ; preds = %entry
22 br i1 undef, label %lbl63A679E5, label %for.body
24 for.body: ; preds = %for.cond
27 for.cond1: ; preds = %for.cond1, %for.body
28 br i1 undef, label %for.cond1, label %for.cond3.loopexit
30 for.cond3.loopexit: ; preds = %for.cond1
33 for.cond3: ; preds = %for.cond9, %for.cond3.loopexit
34 br i1 undef, label %for.body4, label %for.cond17
36 for.body4: ; preds = %for.cond3
39 for.cond5: ; preds = %lbl63A679E5, %for.body4
42 lbl63A679E5: ; preds = %for.cond
45 for.cond9: ; preds = %for.end14.split, %for.cond5
46 br i1 undef, label %for.cond3, label %lbl64774A9B
48 lbl64774A9B: ; preds = %for.cond17, %for.cond9
49 br label %for.end14.split
51 for.end14.split: ; preds = %lbl64774A9B
54 for.cond17: ; preds = %for.cond3