From: Chris Lattner Date: Sun, 17 Oct 2004 21:25:32 +0000 (+0000) Subject: New testcase, no PHI should be inserted. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=41b2dc4133b3673f5b1779aa712f39f037d3c63d;p=oota-llvm.git New testcase, no PHI should be inserted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17097 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/Mem2Reg/UndefValuesMerge.ll b/test/Transforms/Mem2Reg/UndefValuesMerge.ll new file mode 100644 index 00000000000..2da7013cd5e --- /dev/null +++ b/test/Transforms/Mem2Reg/UndefValuesMerge.ll @@ -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 +}