1 ; RUN: opt -S -dse < %s | FileCheck %s
3 declare void @llvm.memcpy.i8(i8*, i8*, i8, i32)
4 declare void @llvm.memmove.i8(i8*, i8*, i8, i32)
5 declare void @llvm.memset.i8(i8*, i8, i8, i32)
12 store i8 0, i8* %A ;; Written to by memcpy
15 call void @llvm.memcpy.i8(i8* %A, i8* %B, i8 -1, i32 0)
21 define void @test2() {
26 store i8 0, i8* %A ;; Written to by memmove
29 call void @llvm.memmove.i8(i8* %A, i8* %B, i8 -1, i32 0)
35 define void @test3() {
40 store i8 0, i8* %A ;; Written to by memset
43 call void @llvm.memset.i8(i8* %A, i8 0, i8 -1, i32 0)