[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/getelementptr.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 4 10:36:01 PST 2002
Changes in directory llvm/test/Regression/Transforms/InstCombine:
getelementptr.ll updated: 1.6 -> 1.7
---
Log message:
Add new getelementptr elimination test
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/InstCombine/getelementptr.ll
diff -u llvm/test/Regression/Transforms/InstCombine/getelementptr.ll:1.6 llvm/test/Regression/Transforms/InstCombine/getelementptr.ll:1.7
--- llvm/test/Regression/Transforms/InstCombine/getelementptr.ll:1.6 Tue Sep 17 15:47:46 2002
+++ llvm/test/Regression/Transforms/InstCombine/getelementptr.ll Mon Nov 4 10:35:14 2002
@@ -35,3 +35,10 @@
%A = getelementptr [10 x sbyte]* %Global, long 0, long 4
ret sbyte* %A
}
+
+int* %foo6() {
+ %M = malloc [4 x int]
+ %A = getelementptr [4 x int]* %M, long 0, long 0
+ %B = getelementptr int* %A, long 2
+ ret int* %B
+}
More information about the llvm-commits
mailing list