OSDN Git Service

If succ has succ itself as one of the predecessors then do
authorDevang Patel <dpatel@apple.com>
Sat, 22 Dec 2007 01:32:53 +0000 (01:32 +0000)
committerDevang Patel <dpatel@apple.com>
Sat, 22 Dec 2007 01:32:53 +0000 (01:32 +0000)
commit01666bf74bd72d43426e62ac9d921a8db0a9179e
tree75076d8d285f394a097943404d6db1f7d29dd36f
parent889ac61113e82abb71138d91a9b7edd6be76cbe0
If succ has succ itself as one of the predecessors then do
not merge current bb and succ even if bb's terminator is
unconditional branch to succ.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45305 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/2007-12-21-Crash.ll [new file with mode: 0644]