don't call MergeBasicBlockIntoOnlyPred on a block whose only
authorChris Lattner <sabre@nondot.org>
Fri, 28 Nov 2008 19:54:49 +0000 (19:54 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 Nov 2008 19:54:49 +0000 (19:54 +0000)
commitf5102a0f088e7c96f7028bf7ca1c24975c314fff
tree112c00bfeacfd18dbf355f8fc8c56664f43f11e7
parentc6dbe7fbad79eddb030a4450a135d13e6b0ca942
don't call MergeBasicBlockIntoOnlyPred on a block whose only
predecessor is itself.  This doesn't make sense, and this is
a dead infinite loop anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60210 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
lib/Transforms/Scalar/JumpThreading.cpp
test/Transforms/JumpThreading/2008-11-28-InfLoop.ll [new file with mode: 0644]