mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
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
17 lines
384 B
LLVM
17 lines
384 B
LLVM
; RUN: opt -S < %s -globalopt | FileCheck %s
|
|
|
|
; Static evaluation across a @llvm.sideeffect.
|
|
|
|
; CHECK-NOT: store
|
|
|
|
declare void @llvm.sideeffect()
|
|
|
|
@llvm.global_ctors = appending global [1 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @ctor } ]
|
|
@G = global i32 0
|
|
|
|
define internal void @ctor() {
|
|
store i32 1, i32* @G
|
|
call void @llvm.sideeffect()
|
|
ret void
|
|
}
|