1 ; Test that inliner skips @llvm.icall.branch.funnel
2 ; RUN: opt < %s -inline -S | FileCheck %s
4 target datalayout = "e-p:64:64"
5 target triple = "x86_64-unknown-linux-gnu"
7 declare void @llvm.icall.branch.funnel(...)
9 ; CHECK-LABEL: define void @fn_musttail(
10 define void @fn_musttail() {
11 call void (...) @bf_musttail()
12 ; CHECK: call void (...) @bf_musttail(
16 ; CHECK-LABEL: define internal void @bf_musttail(
17 define internal void @bf_musttail(...) {
18 musttail call void (...) @llvm.icall.branch.funnel(...)
19 ; CHECK: musttail call void (...) @llvm.icall.branch.funnel(
23 ; CHECK-LABEL: define void @fn_musttail_always(
24 define void @fn_musttail_always() {
25 call void (...) @bf_musttail_always()
26 ; CHECK: call void (...) @bf_musttail_always(
30 ; CHECK-LABEL: define internal void @bf_musttail_always(
31 define internal void @bf_musttail_always(...) alwaysinline {
32 musttail call void (...) @llvm.icall.branch.funnel(...)
33 ; CHECK: musttail call void (...) @llvm.icall.branch.funnel(