llvm-6502/test/Analysis/LoadVN/dependent_loads.ll
Chris Lattner ffdc4ff1c4 new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12832 91177308-0d34-0410-b5e6-96231b3b80d8
2004-04-11 16:47:15 +00:00

13 lines
243 B
LLVM

; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | not grep sub
sbyte %test(sbyte** %P) {
%A = load sbyte** %P
%B = load sbyte* %A
%X = load sbyte** %P
%Y = load sbyte* %X
%R = sub sbyte %B, %Y
ret sbyte %R
}