64ac736ec5
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
16 lines
319 B
LLVM
16 lines
319 B
LLVM
; RUN: opt -S < %s -dse | FileCheck %s
|
|
|
|
declare void @llvm.sideeffect()
|
|
|
|
; Dead store elimination across a @llvm.sideeffect.
|
|
|
|
; CHECK-LABEL: dse
|
|
; CHECK: store
|
|
; CHECK-NOT: store
|
|
define void @dse(float* %p) {
|
|
store float 0.0, float* %p
|
|
call void @llvm.sideeffect()
|
|
store float 0.0, float* %p
|
|
ret void
|
|
}
|