1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
2 ; RUN: opt < %s -passes=ipsccp -S | FileCheck %s
4 define internal i101 @bar(i101 %A) {
5 ; CHECK-LABEL: define internal i101 @bar(
6 ; CHECK-SAME: i101 [[A:%.*]]) {
7 ; CHECK-NEXT: br label %[[T:.*]]
9 ; CHECK-NEXT: [[B:%.*]] = call i101 @bar(i101 0)
10 ; CHECK-NEXT: ret i101 poison
12 %x = icmp eq i101 %A, 0
13 br i1 %x, label %T, label %F
15 %B = call i101 @bar(i101 0)
18 %C = call i101 @bar(i101 1)
23 ; CHECK-LABEL: define i101 @foo() {
24 ; CHECK-NEXT: [[X:%.*]] = call i101 @bar(i101 0)
25 ; CHECK-NEXT: ret i101 0
27 %X = call i101 @bar(i101 0)