[llvm-commits] CVS: llvm/test/Regression/Analysis/LoadVN/dependent_loads.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Apr 11 11:48:01 PDT 2004
Changes in directory llvm/test/Regression/Analysis/LoadVN:
dependent_loads.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+12 -0)
Index: llvm/test/Regression/Analysis/LoadVN/dependent_loads.ll
diff -c /dev/null llvm/test/Regression/Analysis/LoadVN/dependent_loads.ll:1.1
*** /dev/null Sun Apr 11 11:47:25 2004
--- llvm/test/Regression/Analysis/LoadVN/dependent_loads.ll Sun Apr 11 11:47:15 2004
***************
*** 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
+ }
More information about the llvm-commits
mailing list