1; RUN: opt -S < %s -dse -enable-dse-memoryssa=false | FileCheck %s
2
3declare void @llvm.sideeffect()
4
5; Dead store elimination across a @llvm.sideeffect.
6
7; CHECK-LABEL: dse
8; CHECK: store
9; CHECK-NOT: store
10define void @dse(float* %p) {
11    store float 0.0, float* %p
12    call void @llvm.sideeffect()
13    store float 0.0, float* %p
14    ret void
15}
16