diff options
author | Michael Maitland <michaeltmaitland@gmail.com> | 2024-01-17 12:03:21 -0800 |
---|---|---|
committer | Michael Maitland <michaeltmaitland@gmail.com> | 2024-01-17 12:07:42 -0800 |
commit | b1ae461a5358932851de42b66ffde8748da51a83 (patch) | |
tree | f5bf4a8366d2dcd738fd4a2eb5b55cb23a814e6b /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 103fa3250c46b0c4cf04573c5e075185ca574016 (diff) | |
download | llvm-b1ae461a5358932851de42b66ffde8748da51a83.zip llvm-b1ae461a5358932851de42b66ffde8748da51a83.tar.gz llvm-b1ae461a5358932851de42b66ffde8748da51a83.tar.bz2 |
[CodeGen][MISched][NFC] Rename some instances of Cycle -> ReleaseAtCycle
This is to match the naming of arguments in MachineScheduler.h
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index 5547767..f40e918 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -4269,7 +4269,7 @@ static bool sortIntervals(const ResourceSegments::IntervalTy &A, } unsigned ResourceSegments::getFirstAvailableAt( - unsigned CurrCycle, unsigned AcquireAtCycle, unsigned Cycle, + unsigned CurrCycle, unsigned AcquireAtCycle, unsigned ReleaseAtCycle, std::function<ResourceSegments::IntervalTy(unsigned, unsigned, unsigned)> IntervalBuilder) const { assert(std::is_sorted(std::begin(_Intervals), std::end(_Intervals), @@ -4277,7 +4277,7 @@ unsigned ResourceSegments::getFirstAvailableAt( "Cannot execute on an un-sorted set of intervals."); unsigned RetCycle = CurrCycle; ResourceSegments::IntervalTy NewInterval = - IntervalBuilder(RetCycle, AcquireAtCycle, Cycle); + IntervalBuilder(RetCycle, AcquireAtCycle, ReleaseAtCycle); for (auto &Interval : _Intervals) { if (!intersects(NewInterval, Interval)) continue; @@ -4287,7 +4287,7 @@ unsigned ResourceSegments::getFirstAvailableAt( assert(Interval.second > NewInterval.first && "Invalid intervals configuration."); RetCycle += (unsigned)Interval.second - (unsigned)NewInterval.first; - NewInterval = IntervalBuilder(RetCycle, AcquireAtCycle, Cycle); + NewInterval = IntervalBuilder(RetCycle, AcquireAtCycle, ReleaseAtCycle); } return RetCycle; } |