[llvm-commits] CVS: llvm/test/Regression/Analysis/DSGraph/2003-07-16-ConstantExprCollapse.ll

Chris Lattner lattner at cs.uiuc.edu
Fri Jul 25 16:10:28 PDT 2003


Changes in directory llvm/test/Regression/Analysis/DSGraph:

2003-07-16-ConstantExprCollapse.ll added (r1.1)

---
Log message:

New testcase, an automatized version of Vikrams ggcollapse.c file


---
Diffs of the changes:

Index: llvm/test/Regression/Analysis/DSGraph/2003-07-16-ConstantExprCollapse.ll
diff -c /dev/null llvm/test/Regression/Analysis/DSGraph/2003-07-16-ConstantExprCollapse.ll:1.1
*** /dev/null	Fri Jul 25 16:09:21 2003
--- llvm/test/Regression/Analysis/DSGraph/2003-07-16-ConstantExprCollapse.ll	Fri Jul 25 16:09:11 2003
***************
*** 0 ****
--- 1,15 ----
+ ; This should cause the global node to collapse!!
+ ;
+ ; RUN: analyze %s -datastructure-gc --dsgc-check-flags=test:GAU
+ 
+ %Tree = type { int, %Tree*, %Tree* }
+ %T5 = external global %Tree
+ 
+ implementation   ; Functions:
+ 
+ void %makeMore(%Tree** %X) {
+ 	store %Tree* cast (long add (long cast (%Tree* %T5 to long), long 5) to %Tree*), %Tree** %X
+ 	%test = load %Tree** %X
+ 	ret void
+ }
+ 





More information about the llvm-commits mailing list