Fix Regression/Transforms/LoopUnswitch/2006-02-22-UnswitchCrash.ll, which
authorChris Lattner <sabre@nondot.org>
Wed, 22 Feb 2006 23:55:00 +0000 (23:55 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 22 Feb 2006 23:55:00 +0000 (23:55 +0000)
commitf8bf116f808ecc6a9ca09cb761fe2a169e006b57
tree0cbd1f264adc35f691e3542960b0222a6606d38d
parent116ae7c067b774c2dbdd95775e826e943a16dec9
Fix Regression/Transforms/LoopUnswitch/2006-02-22-UnswitchCrash.ll, which
caused SPASS to fail building last night.

We can't trivially unswitch a loop if the exit block has phi nodes in it,
because we don't know which predecessor to use.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26320 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp