[llvm-commits] CVS: llvm/test/Regression/Analysis/LoadVN/dependent_loads.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Apr 11 14:02:02 PDT 2004
Changes in directory llvm/test/Regression/Analysis/LoadVN:
dependent_loads.ll updated: 1.1 -> 1.2
---
Log message:
Add another variant of the testcase
---
Diffs of the changes: (+15 -0)
Index: llvm/test/Regression/Analysis/LoadVN/dependent_loads.ll
diff -u llvm/test/Regression/Analysis/LoadVN/dependent_loads.ll:1.1 llvm/test/Regression/Analysis/LoadVN/dependent_loads.ll:1.2
--- llvm/test/Regression/Analysis/LoadVN/dependent_loads.ll:1.1 Sun Apr 11 11:47:15 2004
+++ llvm/test/Regression/Analysis/LoadVN/dependent_loads.ll Sun Apr 11 14:01:35 2004
@@ -1,5 +1,7 @@
; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | not grep sub
+%S = type { int, sbyte }
+
sbyte %test(sbyte** %P) {
%A = load sbyte** %P
%B = load sbyte* %A
@@ -8,5 +10,18 @@
%Y = load sbyte* %X
%R = sub sbyte %B, %Y
+ ret sbyte %R
+}
+
+sbyte %test(%S ** %P) {
+ %A = load %S** %P
+ %B = getelementptr %S* %A, int 0, ubyte 1
+ %C = load sbyte* %B
+
+ %X = load %S** %P
+ %Y = getelementptr %S* %X, int 0, ubyte 1
+ %Z = load sbyte* %Y
+
+ %R = sub sbyte %C, %Z
ret sbyte %R
}
More information about the llvm-commits
mailing list