mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-18 13:16:24 -04:00
598198edbc
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358552 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
318 B
LLVM
15 lines
318 B
LLVM
; RUN: opt -S < %s -instcombine | FileCheck %s
|
|
|
|
declare void @llvm.sideeffect()
|
|
|
|
; Store-to-load forwarding across a @llvm.sideeffect.
|
|
|
|
; CHECK-LABEL: s2l
|
|
; CHECK-NOT: load
|
|
define float @s2l(float* %p) {
|
|
store float 0.0, float* %p
|
|
call void @llvm.sideeffect()
|
|
%t = load float, float* %p
|
|
ret float %t
|
|
}
|