Debian Codegraph @

llvm/test/Transforms/TailCallElim/kcfi-bundle.ll

raw
1 ; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s
2 ; Check that the "kcfi" operand bundle doesn't prevent tail calls.
3
4 define i64 @f_1(i64 %x, ptr %f_0) {
5 ; CHECK-LABEL: @f_1(
6 entry:
7 ; CHECK: tail call i64 %f_0(i64 %x) [ "kcfi"(i32 42) ]
8 %tmp = call i64 %f_0(i64 %x) [ "kcfi"(i32 42) ]
9 ret i64 0
10 }