1 ; RUN: opt < %s -loop-deletion -S | FileCheck %s
3 ; ScalarEvolution can prove the loop iteration is finite, even though
4 ; it can't represent the exact trip count as an expression. That's
5 ; good enough to let the loop be deleted.
8 ; CHECK-NEXT: br label %return
11 ; CHECK-NEXT: ret void
13 define void @foo(i64 %n, i64 %m) nounwind {
18 %x.0 = phi i64 [ 0, %entry ], [ %t0, %bb ]
20 %t1 = icmp slt i64 %x.0, %n
21 %t3 = icmp sgt i64 %x.0, %m
23 br i1 %t4, label %bb, label %return