Don't try to split a loop when the controlling icmp instruction
authorDan Gohman <gohman@apple.com>
Sat, 27 Jun 2009 22:58:27 +0000 (22:58 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 27 Jun 2009 22:58:27 +0000 (22:58 +0000)
commitf7ca1611e22d7b877ecfd444841f8c79deb5f9e4
tree95635e2e6a5d9766c306e7fa93667394dbe5b619
parenta1baee20c4b042eca1f182fc003f38ab52efc7a9
Don't try to split a loop when the controlling icmp instruction
doesn't have an IV-based operand. This fixes PR4471.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74399 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopIndexSplit.cpp
test/Transforms/LoopIndexSplit/non-iv-cmp-operand.ll [new file with mode: 0644]