mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8100 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7152c237b4
commit
66197a9d23
25
test/Transforms/Inline/inline_dce.ll
Normal file
25
test/Transforms/Inline/inline_dce.ll
Normal file
@ -0,0 +1,25 @@
|
||||
; This checks to ensure that the inline pass deletes functions if they get
|
||||
; inlined into all of their callers.
|
||||
|
||||
; RUN: as < %s | opt -inline | dis | not grep %reallysmall
|
||||
|
||||
implementation
|
||||
|
||||
internal int %reallysmall(int %A) {
|
||||
ret int %A
|
||||
}
|
||||
|
||||
void %caller1() {
|
||||
call int %reallysmall(int 5)
|
||||
ret void
|
||||
}
|
||||
|
||||
void %caller2(int %A) {
|
||||
call int %reallysmall(int %A)
|
||||
ret void
|
||||
}
|
||||
|
||||
int %caller3(int %A) {
|
||||
%B = call int %reallysmall(int %A)
|
||||
ret int %B
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user