Fix FoldSingleEntryPHINodes to update memdep and AA when it deletes
authorChris Lattner <sabre@nondot.org>
Tue, 11 Jan 2011 08:13:40 +0000 (08:13 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 11 Jan 2011 08:13:40 +0000 (08:13 +0000)
commitb5b7997fd0765f73b711ea4c72e4433ce3637794
tree787c16378cdb53323a326b2dba89cdd5b26b6774
parentb298db72531e607c4c4db31df3373f74a9b983b1
Fix FoldSingleEntryPHINodes to update memdep and AA when it deletes
phi nodes.  It is called from MergeBlockIntoPredecessor which is
called from GVN, which claims to preserve these.

I'm skeptical that this is the actual problem behind PR8954, but
this is a stab in the right direction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123222 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/BasicBlockUtils.h
lib/Transforms/Scalar/GVN.cpp
lib/Transforms/Utils/BasicBlockUtils.cpp