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:
parent
4b52632179
commit
59af13f0cf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user