llvm-6502/test/Transforms/ADCE/dce_pure_call.ll
Duncan Sands 7af1c78b98 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71071 91177308-0d34-0410-b5e6-96231b3b80d8
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
}