diff options
| author | Devang Patel <dpatel@apple.com> | 2007-08-24 06:02:25 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2007-08-24 06:02:25 +0000 |
| commit | 4be56a5d12730de3d88ed707dff57a11f64cbe7d (patch) | |
| tree | 4d1aeff0e05daf1ec74e3f3a3fe0c7d0c62aace5 | |
| parent | 5e46fac6debf7af41ac8233479dfef822146efa8 (diff) | |
| download | bcm5719-llvm-4be56a5d12730de3d88ed707dff57a11f64cbe7d.tar.gz bcm5719-llvm-4be56a5d12730de3d88ed707dff57a11f64cbe7d.zip | |
Reject ICMP_NE as index split condition.
llvm-svn: 41357
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp b/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp index 6b69ecefef0..93d6309c484 100644 --- a/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp @@ -338,6 +338,9 @@ void LoopIndexSplit::findSplitCondition() { 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); |

