New testcase

llvm-svn: 5916
This commit is contained in:
Chris Lattner 2003-04-25 00:46:14 +00:00
parent f32939bbc9
commit 0cd5d533d0
1 changed files with 15 additions and 0 deletions

View File

@ -0,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
}