1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=ipsccp -S %s | FileCheck %s
9 ; CHECK-NEXT: br label [[LOOP:%.*]]
11 ; CHECK-NEXT: [[C_1:%.*]] = call i1 @cond()
12 ; CHECK-NEXT: br i1 [[C_1]], label [[LOOP]], label [[LATCH_2:%.*]]
14 ; CHECK-NEXT: [[C_2:%.*]] = call i1 @cond()
15 ; CHECK-NEXT: br i1 [[C_2]], label [[LOOP]], label [[EXIT:%.*]]
17 ; CHECK-NEXT: ret i32 0
23 %p = phi i32 [ undef, %entry ], [ 0, %latch.2 ], [ %p, %loop]
24 %c.1 = call i1 @cond()
25 br i1 %c.1, label %loop, label %latch.2
28 %c.2 = call i1 @cond()
29 br i1 %c.2, label %loop, label %exit