repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bump version to 19.1.0-rc3
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
GVN
/
pr36063.ll
blob
5ac4c3df4c69ff3e47632fc231f6c9fb26aa34da
1
; RUN: opt < %s -passes=memcpyopt,mldst-motion,gvn -S | FileCheck %s
2
3
define void @foo(ptr %ret, i1 %x) {
4
%a = alloca i8
5
br i1 %x, label %yes, label %no
6
7
yes: ; preds = %0
8
store i8 5, ptr %a
9
br label %out
10
11
no: ; preds = %0
12
store i8 5, ptr %a
13
br label %out
14
15
out: ; preds = %no, %yes
16
%tmp = load i8, ptr %a
17
; CHECK-NOT: undef
18
store i8 %tmp, ptr %ret
19
ret void
20
}