brintos

brintos / llvm-project-archived public Read only

0
0
Text · 946 B · 39f48a0 Raw
35 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs2; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s3 4; Check that we do not outline musttail when swifttaill cc or tailcc5; is not present.6 7declare void @musttail()8 9define void @f1() {10  %a = alloca i32, align 411  store i32 2, ptr %a, align 412  musttail call void @musttail()13  ret void14}15 16define void @f2() {17  %a = alloca i32, align 418  store i32 2, ptr %a, align 419  musttail call void @musttail()20  ret void21}22; CHECK-LABEL: @f1(23; CHECK-NEXT:    [[A:%.*]] = alloca i32, align 424; CHECK-NEXT:    store i32 2, ptr [[A]], align 425; CHECK-NEXT:    musttail call void @musttail()26; CHECK-NEXT:    ret void27;28;29; CHECK-LABEL: @f2(30; CHECK-NEXT:    [[A:%.*]] = alloca i32, align 431; CHECK-NEXT:    store i32 2, ptr [[A]], align 432; CHECK-NEXT:    musttail call void @musttail()33; CHECK-NEXT:    ret void34;35