Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit f197336

Browse files
committed
[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
1 parent cfb2d8c commit f197336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/TableGen/SubtargetEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ void SubtargetEmitter::EmitProcessorResources(const CodeGenProcModel &ProcModel,
626626
RecVec ResUnits = PRDef->getValueAsListOfDefs("Resources");
627627
for (Record *RU : ResUnits) {
628628
NumUnits += RU->getValueAsInt("NumUnits");
629-
SubUnitsOffset += NumUnits;
629+
SubUnitsOffset += RU->getValueAsInt("NumUnits");
630630
}
631631
}
632632
else {

0 commit comments

Comments
 (0)