From: Chris Lattner Date: Sun, 11 Apr 2004 16:47:15 +0000 (+0000) Subject: new testcase X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ffdc4ff1c45d0426c549550c477b578c0ffe4751;p=oota-llvm.git new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12832 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/LoadVN/dependent_loads.ll b/test/Analysis/LoadVN/dependent_loads.ll new file mode 100644 index 00000000000..97c6e95496e --- /dev/null +++ b/test/Analysis/LoadVN/dependent_loads.ll @@ -0,0 +1,12 @@ +; 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 +}