mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Constant split values needs upper bound and lower bound check, just like any other split value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41389 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -946,12 +946,6 @@ void LoopIndexSplit::calculateLoopBounds(SplitInfo &SD) {
|
||||
// values in original loop's preheader.
|
||||
// A_ExitValue = min(SplitValue, OrignalLoopExitValue)
|
||||
// B_StartValue = max(SplitValue, OriginalLoopStartValue)
|
||||
if (isa<ConstantInt>(SD.SplitValue)) {
|
||||
SD.A_ExitValue = AEV;
|
||||
SD.B_StartValue = BSV;
|
||||
return;
|
||||
}
|
||||
|
||||
Value *C1 = new ICmpInst(Sign ?
|
||||
ICmpInst::ICMP_SLT : ICmpInst::ICMP_ULT,
|
||||
AEV,
|
||||
|
Reference in New Issue
Block a user