Fix SplitBlockPredecessors' LoopInfo updating code to handle the case
authorDan Gohman <gohman@apple.com>
Mon, 19 Oct 2009 16:04:50 +0000 (16:04 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 19 Oct 2009 16:04:50 +0000 (16:04 +0000)
commit841a14753175bb9a02a8f5286ffe03d050b0da26
tree5e545d4efd18acb564b73ca09f0563ca2816c3ce
parentdfffba6a83b7f79c8853e1412a93442b7a9b825d
Fix SplitBlockPredecessors' LoopInfo updating code to handle the case
where a loop's header is being split and it has predecessors which are not
contained by the most-nested loop which contains the loop.
This fixes PR5235.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84505 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/BasicBlockUtils.cpp
test/Transforms/LoopSimplify/unreachable-loop-pred.ll [new file with mode: 0644]