Fix some nondeterminstic behavior in the mem2reg pass that (in addition to
authorChris Lattner <sabre@nondot.org>
Thu, 27 Apr 2006 01:14:43 +0000 (01:14 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 27 Apr 2006 01:14:43 +0000 (01:14 +0000)
commit634c76c08c34e5fb475527a4e91927a142dd9c46
treead212f1314c115fb202fe497f0ba26cdd075a751
parent7b8229a1464797b58fe7e968a4d9716a0c98b3d9
Fix some nondeterminstic behavior in the mem2reg pass that (in addition to
nondeterminism being bad) could cause some trivial missed optimizations (dead
phi nodes being left around for later passes to clean up).

With this, llvm-gcc4 now bootstraps and correctly compares.  I don't know
why I never tried to do it before... :)

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