mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
880eaf5278
the optimizers about this. For example, a readonly function with no uses cannot be removed unless it is also marked nounwind. llvm-svn: 71071
9 lines
189 B
LLVM
9 lines
189 B
LLVM
; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep call
|
|
|
|
declare i32 @strlen(i8*) readonly nounwind
|
|
|
|
define void @test() {
|
|
call i32 @strlen( i8* null ) ; <i32>:1 [#uses=0]
|
|
ret void
|
|
}
|