1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=simplifycfg -S | FileCheck %s
6 ; FIXME: We can replace %phi with true.
7 define void @test_01(i1 %cond) {
8 ; CHECK-LABEL: @test_01(
10 ; CHECK-NEXT: [[DOT:%.*]] = select i1 [[COND:%.*]], i1 true, i1 undef
11 ; CHECK-NEXT: br i1 [[DOT]], label [[RET_1:%.*]], label [[COMMON_RET:%.*]]
13 ; CHECK-NEXT: ret void
15 ; CHECK-NEXT: call void @foo()
16 ; CHECK-NEXT: br label [[COMMON_RET]]
19 br i1 %cond, label %if.true, label %if.false
28 %phi = phi i1 [true, %if.true], [undef, %if.false]
29 br i1 %phi, label %ret_1, label %ret_2