mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-08 00:24:25 +00:00
splitLoop does not handle split condition EQ.
Fixes PR 2805 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1430,6 +1430,12 @@ bool LoopIndexSplit::splitLoop(SplitInfo &SD) {
|
||||
if (!safeSplitCondition(SD))
|
||||
return false;
|
||||
|
||||
// If split condition EQ is not handled.
|
||||
if (ICmpInst *ICMP = dyn_cast<ICmpInst>(SD.SplitCondition)) {
|
||||
if (ICMP->getPredicate() == ICmpInst::ICMP_EQ)
|
||||
return false;
|
||||
}
|
||||
|
||||
BasicBlock *SplitCondBlock = SD.SplitCondition->getParent();
|
||||
|
||||
// Unable to handle triangle loops at the moment.
|
||||
|
Reference in New Issue
Block a user