Update performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 This time without any manual fixup.
9 lines
189 B
LLVM
9 lines
189 B
LLVM
; RUN: opt -passes=adce -S < %s | not grep call
|
|
|
|
declare i32 @strlen(ptr) readonly nounwind willreturn
|
|
|
|
define void @test() {
|
|
call i32 @strlen( ptr null ) ; <i32>:1 [#uses=0]
|
|
ret void
|
|
}
|