1 ; RUN: opt < %s -loop-deletion -S | FileCheck %s
3 ; Checks whether dead loops with multiple exits can be eliminated
6 ; CHECK-NEXT: br label %return
11 define void @foo(i64 %n, i64 %m) nounwind {
16 %x.0 = phi i64 [ 0, %entry ], [ %t0, %bb2 ]
18 %t1 = icmp slt i64 %x.0, %n
19 br i1 %t1, label %bb2, label %return
21 %t2 = icmp slt i64 %x.0, %m
22 br i1 %t1, label %bb, label %return