1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/Transforms/ADCE/dce_pure_call.ll
Duncan Sands 265752ae8f Ding dong, the DoesntAccessMemoryFns and
OnlyReadsMemoryFns tables are dead!  We
get more, and more accurate, information
from gcc via the readnone and readonly
function attributes.

llvm-svn: 44288
2007-11-23 19:30:27 +00:00

9 lines
189 B
LLVM

; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep call
declare i32 @strlen(i8*) readonly
define void @test() {
call i32 @strlen( i8* null ) readonly ; <i32>:1 [#uses=0]
ret void
}