If ExitValue operand is also defined in Loop header then
authorDevang Patel <dpatel@apple.com>
Mon, 3 Dec 2007 19:17:21 +0000 (19:17 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 3 Dec 2007 19:17:21 +0000 (19:17 +0000)
commit5ffdc56f53eb2cf22daa6d764a8a0fa9f94e440a
treed984c994c625b4fad095e66e4580f159de335490
parentc1d848dd11f9ce3fb5956673652430d895891b6a
If ExitValue operand is also defined in Loop header then
insert new ExitValue after this operand definition.

This fixes PR1828.

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