1 ; RUN: opt < %s -passes=dse -S -enable-dse-partial-overwrite-tracking | FileCheck %s
4 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
5 target triple = "x86_64-unknown-linux-gnu"
7 ; Function Attrs: nounwind
8 define void @_UPT_destroy(ptr nocapture %ptr) local_unnamed_addr #0 {
10 %edi = getelementptr inbounds i8, ptr %ptr, i64 8
12 ; CHECK-NOT: tail call void @llvm.memset.p0.i64(ptr align 8 %edi, i8 0, i64 176, i1 false)
13 ; CHECK-NOT: store i32 -1, ptr %addr
15 tail call void @llvm.memset.p0.i64(ptr align 8 %edi, i8 0, i64 176, i1 false)
16 %format4.i = getelementptr inbounds i8, ptr %ptr, i64 144
17 store i32 -1, ptr %format4.i, align 8
19 ; CHECK: tail call void @free
20 tail call void @free(ptr nonnull %ptr)
24 ; Function Attrs: nounwind
25 declare void @free(ptr nocapture allocptr) local_unnamed_addr #0
27 ; Function Attrs: argmemonly nounwind
28 declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1) #1
30 attributes #0 = { nounwind allockind("free")}
31 attributes #1 = { argmemonly nounwind }