commit | f6ccf6debd428238ffecd4cc4f33145eba1f3cf5 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Fri Aug 24 06:02:25 2007 +0000 |
committer | Devang Patel <dpatel@apple.com> | Fri Aug 24 06:02:25 2007 +0000 |
tree | afbfe8e2ab9667bdfbf97628ea36ae6c5fa1573b | |
parent | 4e2075d7c75f19fe2c63276fd74d4e0807777a0b [diff] |
Reject ICMP_NE as index split condition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41357 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/LoopIndexSplit.cpp b/lib/Transforms/Scalar/LoopIndexSplit.cpp index 6b69ece..93d6309 100644 --- a/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/lib/Transforms/Scalar/LoopIndexSplit.cpp
@@ -338,6 +338,9 @@ if (!CI || CI == ExitCondition) return; + if (CI->getPredicate() == ICmpInst::ICMP_NE) + return; + // If one operand is loop invariant and second operand is SCEVAddRecExpr // based on induction variable then CI is a candidate split condition. Value *V0 = CI->getOperand(0);