[llvm] b1ae461 - [CodeGen][MISched][NFC] Rename some instances of Cycle -> ReleaseAtCycle

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 12:18:25 PST 2024


Author: Michael Maitland
Date: 2024-01-17T12:07:42-08:00
New Revision: b1ae461a5358932851de42b66ffde8748da51a83

URL: https://github.com/llvm/llvm-project/commit/b1ae461a5358932851de42b66ffde8748da51a83
DIFF: https://github.com/llvm/llvm-project/commit/b1ae461a5358932851de42b66ffde8748da51a83.diff

LOG: [CodeGen][MISched][NFC] Rename some instances of Cycle -> ReleaseAtCycle

This is to match the naming of arguments in MachineScheduler.h

Added: 
    

Modified: 
    llvm/lib/CodeGen/MachineScheduler.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 554776783eff6fc..f40e91819a48f17 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;
 }


        


More information about the llvm-commits mailing list