xref: /llvm-project/llvm/test/Transforms/DeadStoreElimination/dependent-capture.ll (revision 13aa2c1c3b7e0a74a7d3e971c00fa2cf6842ac40)
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2; RUN: opt -passes=dse -S < %s | FileCheck %s
3
4define void @f() {
5; CHECK-LABEL: @f(
6; CHECK-NEXT:    [[TMP1:%.*]] = call noalias ptr @_Znwm()
7; CHECK-NEXT:    [[TMP4:%.*]] = call noalias ptr @_Znwm()
8; CHECK-NEXT:    ret void
9;
10  %tmp1 = call noalias ptr @_Znwm()
11  %tmp4 = call noalias ptr @_Znwm()
12  store ptr %tmp4, ptr %tmp1
13  store i8 0, ptr %tmp4, align 1
14  ret void
15}
16
17declare ptr @_Znwm()
18