brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 8b5bc7e Raw
25 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --scrub-attributes2; RUN: opt -S -passes=instcombine < %s | FileCheck %s3 4define dso_local void @test() local_unnamed_addr #0 {5; CHECK-LABEL: @test(6; CHECK-NEXT:    ret void7;8  %1 = tail call noalias align 16 dereferenceable_or_null(4) ptr @malloc(i64 4) #49  %2 = tail call align 16 dereferenceable_or_null(6) ptr @realloc(ptr %1, i64 6) #410  tail call void @free(ptr %2) #411  ret void12}13 14declare dso_local noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #115declare dso_local noalias noundef ptr @realloc(ptr nocapture allocptr, i64 noundef) local_unnamed_addr #216declare dso_local void @free(ptr nocapture allocptr noundef) local_unnamed_addr #317declare void @llvm.dbg.value(metadata, metadata, metadata) #318 19attributes #0 = { mustprogress nounwind uwtable willreturn }20attributes #1 = { inaccessiblememonly mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") "alloc-family"="malloc" }21attributes #2 = { inaccessiblemem_or_argmemonly mustprogress nounwind willreturn allockind("realloc") "alloc-family"="malloc" }22attributes #3 = { nofree nosync nounwind readnone speculatable willreturn allockind("free") "alloc-family"="malloc" }23attributes #4 = { nounwind }24 25