Alina Sbirlea | 52e97a2 | 2018-08-28 20:41:05 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -simple-loop-unswitch -disable-output |
| 2 | |
| 3 | ; PR38283 |
| 4 | ; PR38737 |
| 5 | define void @f1() { |
| 6 | for.cond1thread-pre-split.lr.ph.lr.ph: |
| 7 | %tobool4 = icmp eq i16 undef, 0 |
| 8 | br label %for.cond1thread-pre-split |
| 9 | |
| 10 | for.cond1thread-pre-split: ; preds = %if.end, %for.cond1thread-pre-split.lr.ph.lr.ph |
| 11 | %tobool3 = icmp eq i16 undef, 0 |
| 12 | br label %for.body2 |
| 13 | |
| 14 | for.body2: ; preds = %if.end6, %for.cond1thread-pre-split |
| 15 | br i1 %tobool3, label %if.end, label %for.end |
| 16 | |
| 17 | if.end: ; preds = %for.body2 |
| 18 | br i1 %tobool4, label %if.end6, label %for.cond1thread-pre-split |
| 19 | |
| 20 | if.end6: ; preds = %if.end |
| 21 | br i1 undef, label %for.body2, label %for.end |
| 22 | |
| 23 | for.end: ; preds = %if.end6, %for.body2 |
| 24 | ret void |
| 25 | } |