Fix handling of unreachable blocks in the SSAUpdater. The previous code only
authorBob Wilson <bob.wilson@apple.com>
Thu, 6 May 2010 16:24:11 +0000 (16:24 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 6 May 2010 16:24:11 +0000 (16:24 +0000)
commitc52edc7d3072ce5f93a7fd4ce7636155f7ab7a1f
treef75d6d723714f1f97c640c571ed25455cf960916
parent429009b0f1bef035b8ad1705edb7f1741ddaa427
Fix handling of unreachable blocks in the SSAUpdater.  The previous code only
handled cases where a block had zero predecessors, but failed to detect other
cases like loops with no entries.  The SSAUpdater is already doing a forward
traversal through the blocks, so it is not hard to identify the blocks that
were never reached on that traversal.  This fixes the crash for ppc on the
stepanov_vector test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103184 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/SSAUpdaterImpl.h