Fix loop unswitching's assumption that a code path which either
authorDan Gohman <gohman@apple.com>
Wed, 1 Sep 2010 21:46:45 +0000 (21:46 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 1 Sep 2010 21:46:45 +0000 (21:46 +0000)
commitb0a57210a435090d8106fc7fb3529ba21e6540bd
tree52e730a20c755a6a38e5c576fc33c481843e800b
parent6e3665bcd092e65e65ef0486f0f7632514eee35f
Fix loop unswitching's assumption that a code path which either
infinite loops or exits will eventually exit. This fixes PR5373.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112745 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp
test/Transforms/LoopUnswitch/infinite-loop.ll [new file with mode: 0644]