summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-08-24 06:02:25 +0000
committerDevang Patel <dpatel@apple.com>2007-08-24 06:02:25 +0000
commit4be56a5d12730de3d88ed707dff57a11f64cbe7d (patch)
tree4d1aeff0e05daf1ec74e3f3a3fe0c7d0c62aace5 /llvm/lib
parent5e46fac6debf7af41ac8233479dfef822146efa8 (diff)
downloadbcm5719-llvm-4be56a5d12730de3d88ed707dff57a11f64cbe7d.tar.gz
bcm5719-llvm-4be56a5d12730de3d88ed707dff57a11f64cbe7d.zip
Reject ICMP_NE as index split condition.
llvm-svn: 41357
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopIndexSplit.cpp3
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);
OpenPOWER on IntegriCloud