diff options
author | Michael Maitland <michaeltmaitland@gmail.com> | 2023-08-24 15:37:27 -0700 |
---|---|---|
committer | Michael Maitland <michaeltmaitland@gmail.com> | 2023-08-24 15:37:27 -0700 |
commit | 71bfec762bd970e7834f58c158ddc15f93402d7a (patch) | |
tree | 96f9615559002f52de7d71e1071e5684930f327e /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | 5b854f2c23ea1b000cb4cac4c0fea77326c03d43 (diff) | |
download | llvm-71bfec762bd970e7834f58c158ddc15f93402d7a.zip llvm-71bfec762bd970e7834f58c158ddc15f93402d7a.tar.gz llvm-71bfec762bd970e7834f58c158ddc15f93402d7a.tar.bz2 |
Revert "[TableGen] Rename ResourceCycles and StartAtCycle to clarify semantics"
This reverts commit 5b854f2c23ea1b000cb4cac4c0fea77326c03d43.
Build still failing.
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachinePipeliner.cpp | 12 |
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"); } |