32 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: opt -passes=ipsccp --funcspec-min-function-size=1 -S < %s | FileCheck %s3 4@gv = internal global ptr null5 6define i8 @caller() {7; CHECK-LABEL: define i8 @caller() {8; CHECK-NEXT: [[ENTRY:.*:]]9; CHECK-NEXT: [[CALL1:%.*]] = call i8 @callee.specialized.1(i32 1)10; CHECK-NEXT: [[CALL2:%.*]] = call i8 @callee.specialized.2(i32 0)11; CHECK-NEXT: ret i8 undef12;13entry:14 %call1 = call i8 @callee(i32 1)15 %call2 = call i8 @callee(i32 0)16 ret i8 %call217}18 19define internal i8 @callee(i32 %arg) {20entry:21 %useless = icmp ne i32 %arg, 022 br label %loop23 24loop: ; preds = %loop, %entry25 br label %loop26 27dead_bb: ; No predecessors!28 %l1 = load ptr, ptr @gv, align 829 %l2 = load ptr, ptr %l1, align 830 ret i8 031}32