1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Transforms/ADCE/dce_pure_call.ll
Duncan Sands 880eaf5278 Allow readonly functions to unwind exceptions. Teach
the optimizers about this.  For example, a readonly
function with no uses cannot be removed unless it is
also marked nounwind.

llvm-svn: 71071
2009-05-06 06:49:50 +00:00

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
}