Files
clang-p2996/llvm/test/Transforms/ADCE/dce_pure_invoke.ll
Nikita Popov 563cf93776 [ADCE] Update tests to use opaque pointers (NFC)
Update performed using:
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34

This time without any manual fixup.
2022-06-22 12:26:12 +02:00

20 lines
460 B
LLVM

; RUN: opt < %s -passes=adce -S | grep null
declare i32 @strlen(ptr) readnone
define i32 @test() personality ptr @__gxx_personality_v0 {
; invoke of pure function should not be deleted!
invoke i32 @strlen( ptr null ) readnone
to label %Cont unwind label %Other ; <i32>:1 [#uses=0]
Cont: ; preds = %0
ret i32 0
Other: ; preds = %0
%exn = landingpad {ptr, i32}
cleanup
ret i32 1
}
declare i32 @__gxx_personality_v0(...)