repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git]
/
test
/
Transforms
/
EarlyCSE
/
writeonly.ll
blob
0a3cd1c7401ca73c80de34c949daf472cda54785
1
; RUN: opt -S -early-cse < %s | FileCheck %s
2
3
@var = global i32 undef
4
declare void @foo() nounwind
5
6
define void @test() {
7
; CHECK-LABEL: @test(
8
; CHECK-NOT: store
9
store i32 1, i32* @var
10
; CHECK: call void @foo()
11
call void @foo() writeonly
12
; CHECK: store i32 2, i32* @var
13
store i32 2, i32* @var
14
ret void
15
}