23 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -passes=reg2mem -S < %s | FileCheck %s3 4declare target("opaque") @ret_opaque()5declare void @pass_opaque(target("opaque"))6 7define void @test() {8; CHECK-LABEL: @test(9; CHECK-NEXT: %"reg2mem alloca point" = bitcast i32 0 to i3210; CHECK-NEXT: [[X:%.*]] = call target("opaque") @ret_opaque()11; CHECK-NEXT: br label [[NEXT:%.*]]12; CHECK: next:13; CHECK-NEXT: call void @pass_opaque(target("opaque") [[X]])14; CHECK-NEXT: ret void15;16 %x = call target("opaque") @ret_opaque()17 br label %next18 19next:20 call void @pass_opaque(target("opaque") %x)21 ret void22}23