mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
New testcase, no PHI should be inserted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17097 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8143c2bc0d
commit
41b2dc4133
14
test/Transforms/Mem2Reg/UndefValuesMerge.ll
Normal file
14
test/Transforms/Mem2Reg/UndefValuesMerge.ll
Normal file
@ -0,0 +1,14 @@
|
||||
; RUN: llvm-as < %s | opt -mem2reg | llvm-dis | not grep phi
|
||||
|
||||
implementation
|
||||
|
||||
int %testfunc(bool %C, int %i, sbyte %j) {
|
||||
%I = alloca int
|
||||
br bool %C, label %T, label %Cont
|
||||
T:
|
||||
store int %i, int* %I
|
||||
br label %Cont
|
||||
Cont:
|
||||
%Y = load int* %I ;; %Y = phi %i, undef -> %Y = %i
|
||||
ret int %Y
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user