xref: /llvm-project/llvm/test/Transforms/GVN/pr24426.ll (revision 23abf931386002fb9d2c11d026846475c224c641)
1; RUN: opt < %s -passes=memcpyopt,mldst-motion,gvn -S | FileCheck %s
2
3declare void @check(i8)
4
5declare void @write(ptr %res)
6
7define void @test1() {
8  %1 = alloca [10 x i8]
9  call void @write(ptr %1)
10  %2 = load i8, ptr %1
11
12; CHECK-NOT: undef
13  call void @check(i8 %2)
14
15  ret void
16}
17
18