Files
clang-p2996/llvm/test/Transforms/Inline/ML/avail-external.ll
Mircea Trofin 600ff28772 [mlgo] add 2 new features whether caller/callee is available_externally (#96585)
AvailableExternally linkage is interesting because, in ThinLTO cases, it
means the function may get elided if it survives inlining - see
`elim-avail-extern` pass.
2024-06-25 12:36:40 -07:00

23 lines
755 B
LLVM

; REQUIRES: x86_64-linux
; RUN: rm -rf %t.rundir
; RUN: rm -rf %t.channel-basename.*
; RUN: mkdir %t.rundir
; RUN: cp %S/../../../../lib/Analysis/models/log_reader.py %t.rundir
; RUN: cp %S/../../../../lib/Analysis/models/interactive_host.py %t.rundir
; RUN: cp %S/Inputs/interactive_main.py %t.rundir
; RUN: %python %t.rundir/interactive_main.py %t.channel-basename \
; RUN: opt -passes=scc-oz-module-inliner -interactive-model-runner-echo-reply \
; RUN: -enable-ml-inliner=release -inliner-interactive-channel-base=%t.channel-basename %s -S -o /dev/null | FileCheck %s
define available_externally void @g() {
ret void
}
define void @f(){
call void @g()
ret void
}
; CHECK: is_callee_avail_external: 1
; CHECK: is_caller_avail_external: 0