[llvm-commits] CVS: llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll

Chris Lattner lattner at cs.uiuc.edu
Sun Jun 29 13:18:01 PDT 2003


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

2003-06-29-NodeCollapsing2.ll added (r1.1)

---
Log message:

New, smaller testcase


---
Diffs of the changes:

Index: llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll
diff -c /dev/null llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll:1.1
*** /dev/null	Sun Jun 29 13:17:30 2003
--- llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll	Sun Jun 29 13:17:20 2003
***************
*** 0 ****
--- 1,18 ----
+ ; This is the same testcase as 2003-06-29-NodeCollapsing2.ll, but it uses the 
+ ; graph checker.
+ ;
+ ; RUN: analyze %s -datastructure-gc -dsgc-abort-if-any-collapsed
+ ;
+ %T = type { int}
+ 
+ int %main() {
+ 	%A = alloca %T
+ 	%B = alloca { %T }
+ 	%C = alloca %T*
+ 	%Bp = getelementptr { %T }* %B, long 0, ubyte 0
+ 	%Ap = getelementptr %T* %A, long 0, ubyte 0
+ 
+ 	store %T* %A, %T** %C
+ 	store %T* %Bp, %T** %C    ; This store was causing merging to happen!
+ 	ret int 0
+ }





More information about the llvm-commits mailing list