[llvm] r324727 - [TargetSchedule] Fix r324582.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 02:28:46 PST 2018
Author: courbet
Date: Fri Feb 9 02:28:46 2018
New Revision: 324727
URL: http://llvm.org/viewvc/llvm-project?rev=324727&view=rev
Log:
[TargetSchedule] Fix r324582.
Increment was using the wrong NumUnits (the one from the ProcResGroup
and not the subunit).
Modified:
llvm/trunk/utils/TableGen/SubtargetEmitter.cpp
Modified: llvm/trunk/utils/TableGen/SubtargetEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/SubtargetEmitter.cpp?rev=324727&r1=324726&r2=324727&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/SubtargetEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/SubtargetEmitter.cpp Fri Feb 9 02:28:46 2018
@@ -626,7 +626,7 @@ void SubtargetEmitter::EmitProcessorReso
RecVec ResUnits = PRDef->getValueAsListOfDefs("Resources");
for (Record *RU : ResUnits) {
NumUnits += RU->getValueAsInt("NumUnits");
- SubUnitsOffset += NumUnits;
+ SubUnitsOffset += RU->getValueAsInt("NumUnits");
}
}
else {
More information about the llvm-commits
mailing list