mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
Reject ICMP_NE as index split condition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b88e4200cf
commit
c830aee8e8
@ -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…
x
Reference in New Issue
Block a user