llvm.org GIT mirror llvm / f197336
[TargetSchedule] Fix r324582. Increment was using the wrong NumUnits (the one from the ProcResGroup and not the subunit). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324727 91177308-0d34-0410-b5e6-96231b3b80d8 Clement Courbet 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
625625 RecVec ResUnits = PRDef->getValueAsListOfDefs("Resources");
626626 for (Record *RU : ResUnits) {
627627 NumUnits += RU->getValueAsInt("NumUnits");
628 SubUnitsOffset += NumUnits;
628 SubUnitsOffset += RU->getValueAsInt("NumUnits");
629629 }
630630 }
631631 else {