Do not mark obviously unreachable blocks live when processing PHI nodes,
authorChris Lattner <sabre@nondot.org>
Thu, 17 Feb 2005 19:28:49 +0000 (19:28 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 17 Feb 2005 19:28:49 +0000 (19:28 +0000)
commit1a84bd38efa9d3f638781e2502b2bee150a3471c
tree358c1f6c0e50b2595d4516d1a35eb98cb975fd18
parentae02b723bf2c47f0dede9452c5053776920801ff
Do not mark obviously unreachable blocks live when processing PHI nodes,
and handle incomplete control dependences correctly.  This fixes:

Regression/Transforms/ADCE/dead-phi-edge.ll
  -> a missed optimization

Regression/Transforms/ADCE/dead-phi-edge.ll
  -> a compiler crash distilled from QT4

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20227 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ADCE.cpp