1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Reject ICMP_NE as index split condition.

llvm-svn: 41357
This commit is contained in:
Devang Patel 2007-08-24 06:02:25 +00:00
parent 4b52632179
commit 59af13f0cf

View File

@ -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);