aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachinePipeliner.cpp
diff options
context:
space:
mode:
authorMichael Maitland <michaeltmaitland@gmail.com>2023-08-24 11:57:38 -0700
committerMichael Maitland <michaeltmaitland@gmail.com>2023-08-24 11:58:53 -0700
commit4d27dffb435ff574d32bc71fbcbb5c038fa18d70 (patch)
treef5afac27c2b1f0c29573bf018de8743461a78b70 /llvm/lib/CodeGen/MachinePipeliner.cpp
parent71c72a9e173473620f19510de5a661d5dc771948 (diff)
downloadllvm-4d27dffb435ff574d32bc71fbcbb5c038fa18d70.zip
llvm-4d27dffb435ff574d32bc71fbcbb5c038fa18d70.tar.gz
llvm-4d27dffb435ff574d32bc71fbcbb5c038fa18d70.tar.bz2
Revert "[TableGen] Rename ResourceCycles and StartAtCycle to clarify semantics"
This reverts commit 030d33409568b2f0ea61116e83fd40ca27ba33ac. This commit is causing build failures
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
-rw-r--r--llvm/lib/CodeGen/MachinePipeliner.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp
index adcbf65..c7e7497 100644
--- a/llvm/lib/CodeGen/MachinePipeliner.cpp
+++ b/llvm/lib/CodeGen/MachinePipeliner.cpp
@@ -1039,7 +1039,7 @@ struct FuncUnitSorter {
for (const MCWriteProcResEntry &PRE :
make_range(STI->getWriteProcResBegin(SCDesc),
STI->getWriteProcResEnd(SCDesc))) {
- if (!PRE.ReleaseAtCycle)
+ if (!PRE.Cycles)
continue;
const MCProcResourceDesc *ProcResource =
STI->getSchedModel().getProcResource(PRE.ProcResourceIdx);
@@ -1082,7 +1082,7 @@ struct FuncUnitSorter {
for (const MCWriteProcResEntry &PRE :
make_range(STI->getWriteProcResBegin(SCDesc),
STI->getWriteProcResEnd(SCDesc))) {
- if (!PRE.ReleaseAtCycle)
+ if (!PRE.Cycles)
continue;
Resources[PRE.ProcResourceIdx]++;
}
@@ -3092,7 +3092,7 @@ void ResourceManager::reserveResources(const MCSchedClassDesc *SCDesc,
assert(!UseDFA);
for (const MCWriteProcResEntry &PRE : make_range(
STI->getWriteProcResBegin(SCDesc), STI->getWriteProcResEnd(SCDesc)))
- for (int C = Cycle; C < Cycle + PRE.ReleaseAtCycle; ++C)
+ for (int C = Cycle; C < Cycle + PRE.Cycles; ++C)
++MRT[positiveModulo(C, InitiationInterval)][PRE.ProcResourceIdx];
for (int C = Cycle; C < Cycle + SCDesc->NumMicroOps; ++C)
@@ -3104,7 +3104,7 @@ void ResourceManager::unreserveResources(const MCSchedClassDesc *SCDesc,
assert(!UseDFA);
for (const MCWriteProcResEntry &PRE : make_range(
STI->getWriteProcResBegin(SCDesc), STI->getWriteProcResEnd(SCDesc)))
- for (int C = Cycle; C < Cycle + PRE.ReleaseAtCycle; ++C)
+ for (int C = Cycle; C < Cycle + PRE.Cycles; ++C)
--MRT[positiveModulo(C, InitiationInterval)][PRE.ProcResourceIdx];
for (int C = Cycle; C < Cycle + SCDesc->NumMicroOps; ++C)
@@ -3220,10 +3220,10 @@ int ResourceManager::calculateResMII() const {
if (SwpDebugResource) {
const MCProcResourceDesc *Desc =
SM.getProcResource(PRE.ProcResourceIdx);
- dbgs() << Desc->Name << ": " << PRE.ReleaseAtCycle << ", ";
+ dbgs() << Desc->Name << ": " << PRE.Cycles << ", ";
}
});
- ResourceCount[PRE.ProcResourceIdx] += PRE.ReleaseAtCycle;
+ ResourceCount[PRE.ProcResourceIdx] += PRE.Cycles;
}
LLVM_DEBUG(if (SwpDebugResource) dbgs() << "\n");
}