mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
New testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12806 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
94c420da4a
commit
dc4736f8e6
9
test/Transforms/ADCE/dce_pure_call.ll
Normal file
9
test/Transforms/ADCE/dce_pure_call.ll
Normal file
@ -0,0 +1,9 @@
|
||||
; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep call
|
||||
|
||||
declare int %strlen(sbyte*)
|
||||
|
||||
void %test() {
|
||||
;; Dead call should be deleted!
|
||||
call int %strlen(sbyte *null)
|
||||
ret void
|
||||
}
|
13
test/Transforms/ADCE/dce_pure_invoke.ll
Normal file
13
test/Transforms/ADCE/dce_pure_invoke.ll
Normal file
@ -0,0 +1,13 @@
|
||||
; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep null
|
||||
|
||||
declare int %strlen(sbyte*)
|
||||
|
||||
int %test() {
|
||||
;; Dead call should be deleted!
|
||||
invoke int %strlen(sbyte *null) to label %Cont unwind label %Other
|
||||
Cont:
|
||||
ret int 0
|
||||
Other:
|
||||
ret int 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user