1 ; RUN: opt -S < %s -early-cse | FileCheck %s
3 declare void @llvm.sideeffect()
5 ; Store-to-load forwarding across a @llvm.sideeffect.
9 define float @s2l(float* %p) {
10 store float 0.0, float* %p
11 call void @llvm.sideeffect()
12 %t = load float, float* %p
16 ; Redundant load elimination across a @llvm.sideeffect.
21 define float @rle(float* %p) {
22 %r = load float, float* %p
23 call void @llvm.sideeffect()
24 %s = load float, float* %p
25 %t = fadd float %r, %s