mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
286921e8d2
commit
68be6e7f6a
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user