Do not eliminate loop when it is invalid to do so. For example,
commit4b4e9b0b4edc6657c25a7b0055f5fa015a4aa8d9
authorDevang Patel <dpatel@apple.com>
Mon, 17 Sep 2007 21:01:05 +0000 (17 21:01 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 17 Sep 2007 21:01:05 +0000 (17 21:01 +0000)
treee6f9b3c086cf932911f349d662275b417ac11af0
parent59a6dbdbb1d5b607d0933ff65342b6d5b39907e2
Do not eliminate loop when it is invalid to do so. For example,
for(int i = 0; i < N; i++) {
if ( i == XYZ) {
A;
else
B;
}
C;
D;
}

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