brintos

brintos / llvm-project-archived public Read only

0
0
Text · 317 B · 234eba0 Raw
16 lines · plain
1; RUN: opt -S < %s -passes=dse | FileCheck %s2 3declare void @llvm.sideeffect()4 5; Dead store elimination across a @llvm.sideeffect.6 7; CHECK-LABEL: dse8; CHECK: store9; CHECK-NOT: store10define void @dse(ptr %p) {11    store float 0.0, ptr %p12    call void @llvm.sideeffect()13    store float 0.0, ptr %p14    ret void15}16