Compiler projects using llvm
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -passes=dse -S < %s | FileCheck %s

define void @f() {
; CHECK-LABEL: @f(
; CHECK-NEXT:    [[TMP1:%.*]] = call noalias ptr @_Znwm()
; CHECK-NEXT:    [[TMP4:%.*]] = call noalias ptr @_Znwm()
; CHECK-NEXT:    ret void
;
  %tmp1 = call noalias ptr @_Znwm()
  %tmp4 = call noalias ptr @_Znwm()
  store ptr %tmp4, ptr %tmp1
  store i8 0, ptr %tmp4, align 1
  ret void
}

declare ptr @_Znwm()