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
[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
NewGVN
/
pr24426.ll
blob
26e7a9f223f6a2ba7f56e4f841e78a9d9f66ab45
1
; RUN: opt < %s -memcpyopt -mldst-motion -newgvn -S | FileCheck %s
2
3
declare void @check(i8)
4
5
declare void @write(i8* %res)
6
7
define void @test1() {
8
%1 = alloca [10 x i8]
9
%2 = bitcast [10 x i8]* %1 to i8*
10
call void @write(i8* %2)
11
%3 = load i8, i8* %2
12
13
; CHECK-NOT: undef
14
call void @check(i8 %3)
15
16
ret void
17
}
18