OSDN Git Service

When inserting PHI nodes, don't insert any phi nodes that are obviously
authorChris Lattner <sabre@nondot.org>
Sun, 17 Oct 2004 21:25:56 +0000 (21:25 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Oct 2004 21:25:56 +0000 (21:25 +0000)
commit7e40f63428fbdf64fdea5aa84459d7b3072a9a65
treef4078d4de9a3443ad5ad79511e28a68fa32b9d34
parent41b2dc4133b3673f5b1779aa712f39f037d3c63d
When inserting PHI nodes, don't insert any phi nodes that are obviously
unneccesary.  This allows us to delete several hundred phi nodes of the
form PHI(x,x,x,undef) from 253.perlbmk and probably other programs as well.

This implements Mem2Reg/UndefValuesMerge.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17098 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/PromoteMemoryToRegister.cpp