diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-17 21:25:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-17 21:25:32 +0000 |
commit | 41b2dc4133b3673f5b1779aa712f39f037d3c63d (patch) | |
tree | 98f7d5d915676b8e48b842eeb792aa13213bdcb7 | |
parent | 8143c2bc0de4f39bef0432a25d9a111be4767fa1 (diff) | |
download | external_llvm-41b2dc4133b3673f5b1779aa712f39f037d3c63d.zip external_llvm-41b2dc4133b3673f5b1779aa712f39f037d3c63d.tar.gz external_llvm-41b2dc4133b3673f5b1779aa712f39f037d3c63d.tar.bz2 |
New testcase, no PHI should be inserted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17097 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/Mem2Reg/UndefValuesMerge.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/Mem2Reg/UndefValuesMerge.ll b/test/Transforms/Mem2Reg/UndefValuesMerge.ll new file mode 100644 index 0000000..2da7013 --- /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 +} |