projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix PR2029
[oota-llvm.git]
/
test
/
Transforms
/
ADCE
/
dce_pure_invoke.ll
1
; RUN: llvm-as < %s | opt -adce | llvm-dis | grep null
2
3
declare i32 @strlen(i8*) readnone
4
5
define i32 @test() {
6
; invoke of pure function should not be deleted!
7
invoke i32 @strlen( i8* null ) readnone
8
to label %Cont unwind label %Other ; <i32>:1 [#uses=0]
9
10
Cont: ; preds = %0
11
ret i32 0
12
13
Other: ; preds = %0
14
ret i32 1
15
}