1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S < %s | FileCheck %s
4 define void @t0(i1 %c) {
10 br i1 %c, label %end0, label %end1
19 define i8 @t1(i1 %c, i8 %v) {
22 ; CHECK-NEXT: ret i8 [[V:%.*]]
25 br i1 %c, label %end0, label %end1
34 define i8 @t2(i1 %c, i8 %v0, i8 %v1) {
37 ; CHECK-NEXT: [[V0_V1:%.*]] = select i1 [[C:%.*]], i8 [[V0:%.*]], i8 [[V1:%.*]]
38 ; CHECK-NEXT: ret i8 [[V0_V1]]
41 br i1 %c, label %end0, label %end1