1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=instsimplify -S < %s | FileCheck %s
4 define void @foo(i1 %arg) nounwind {
6 ; CHECK-NEXT: br i1 %arg, label [[TMP1:%.*]], label [[TMP2:%.*]]
8 ; CHECK-NEXT: br label [[TMP1]]
10 ; CHECK-NEXT: ret void
12 br i1 %arg, label %1, label %4
14 ; <label>:1 ; preds = %1, %0
15 %2 = phi i32 [ %3, %1 ], [ undef, %0 ]
19 ; <label>:4 ; preds = %0