fix PR5640 by tracking whether a block is the header of a loop more
authorChris Lattner <sabre@nondot.org>
Tue, 1 Dec 2009 06:04:43 +0000 (06:04 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 1 Dec 2009 06:04:43 +0000 (06:04 +0000)
commit46875c0bfb77880ba4120eeed7caca7f1f7c1f69
tree64085c809aadf89c23d16bab28ce4d8ec2fad43f
parent18518603f1acc26768eba40c53bcfc0e2fa85fec
fix PR5640 by tracking whether a block is the header of a loop more
precisely, which prevents us from infinitely peeling the loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90211 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/JumpThreading.cpp
test/Transforms/JumpThreading/crash.ll