Skip to content
Snippets Groups Projects
Commit d0476731 authored by Chris Lattner's avatar Chris Lattner
Browse files

New testcase, no PHI should be inserted.

llvm-svn: 17097
parent 96db59e4
No related branches found
No related tags found
No related merge requests found
; 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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment