1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/Transforms/Inline/externally_available.ll
Arthur Eubanks 8e4adad70b [Inliner][NPM] Fix various tests under NPM
alloca-dbgdeclare-merge.ll:
alloca-merge-align.ll:
array_merge.ll:
 NPM inliner does not merge allocas

delete-call.ll:
 NPM inliner does not delete readonly calls

externally_available.ll:
 NPM inliner does not delete available_externally functions

inline-cold-callee.ll:
inline-hot-callee.ll:
 inline-hot-callee.ll has a comment saying it only applies to legacy PM,
 I assume same for inline-cold-callee.ll

devirtualize-2.ll:
inline-hot-callsite:
monster_scc.ll:
pr22285.ll:
 already has legacy and new PM RUN lines

inline-cold.ll:
 profile-summary required to see callee as cold

prof-update-sample.ll:
 profile-summary required to update branch_weights

Reviewed By: davidxl

Differential Revision: https://reviews.llvm.org/D89093
2020-10-12 10:41:40 -07:00

24 lines
412 B
LLVM

; RUN: opt < %s -inline -S -enable-new-pm=0 | FileCheck %s
define available_externally i32 @test_function() {
; CHECK-NOT: @test_function
entry:
ret i32 4
}
define i32 @result() {
; CHECK-LABEL: define i32 @result()
entry:
%A = call i32 @test_function()
; CHECK-NOT: call
; CHECK-NOT: @test_function
%B = add i32 %A, 1
ret i32 %B
; CHECK: add i32
; CHECK-NEXT: ret i32
}
; CHECK-NOT: @test_function