SDISel's constant branch folding can fold away self-loops, which doesn't result in...
authorOwen Anderson <resistor@mac.com>
Wed, 6 Aug 2008 23:16:52 +0000 (23:16 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 6 Aug 2008 23:16:52 +0000 (23:16 +0000)
commit9200e81a1828f7d3aa59a48c52317e1beeeac0b1
treef6ed06ea65730d5f57e3b613bb8cabcb3df0e3b6
parent883771f86a111c43ce7c30085a1f4820b66f5712
SDISel's constant branch folding can fold away self-loops, which doesn't result in any dead blocks, but
rather an incorrect phi input.  Add code to UnreachableMachineBlockElim to get rid of these entries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54432 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/UnreachableBlockElim.cpp