[llvm-commits] CVS: llvm/test/Regression/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll

Chris Lattner lattner at cs.uiuc.edu
Thu Apr 24 19:47:00 PDT 2003


Changes in directory llvm/test/Regression/Transforms/Mem2Reg:

2003-04-24-MultipleIdenticalSuccessors.ll added (r1.1)

---
Log message:

New testcase


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll
diff -c /dev/null llvm/test/Regression/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll:1.1
*** /dev/null	Thu Apr 24 19:46:25 2003
--- llvm/test/Regression/Transforms/Mem2Reg/2003-04-24-MultipleIdenticalSuccessors.ll	Thu Apr 24 19:46:14 2003
***************
*** 0 ****
--- 1,15 ----
+ ; Mem2reg used to only add one incoming value to a PHI node, even if it had
+ ; multiple incoming edges from a block.
+ ;
+ ; RUN: as < %s | opt -mem2reg -disable-output
+ 
+ int %test(bool %c1, bool %c2) {
+ 	%X = alloca int
+ 	br bool %c1, label %Exit, label %B2
+ B2:
+ 	store int 2, int* %X
+ 	br bool %c2, label %Exit, label %Exit
+ Exit:
+ 	%Y = load int *%X
+ 	ret int %Y
+ }





More information about the llvm-commits mailing list