fix typo
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 13 Oct 2022 02:16:06 +0000 (19:16 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Thu, 13 Oct 2022 02:16:06 +0000 (19:16 -0700)
src/bigint_presentation_code/toom_cook.py

index 0c4e5b41202686fba2fe0d0b65ffa67646d6b797..e8e97bfac60bad18506e39f53c867765441d14c4 100644 (file)
@@ -808,13 +808,13 @@ class MergedRegSets(Mapping[SSAVal, MergedRegSet]):
 class LiveIntervals(Mapping[MergedRegSet, LiveInterval]):
     def __init__(self, ops):
         # type: (list[Op]) -> None
-        self.__merges_reg_sets = MergedRegSets(ops)
+        self.__merged_reg_sets = MergedRegSets(ops)
         live_intervals = {}  # type: dict[MergedRegSet, LiveInterval]
         for op_idx, op in enumerate(ops):
             for val in op.inputs().values():
-                live_intervals[self.__merges_reg_sets[val]] += op_idx
+                live_intervals[self.__merged_reg_sets[val]] += op_idx
             for val in op.outputs().values():
-                reg_set = self.__merges_reg_sets[val]
+                reg_set = self.__merged_reg_sets[val]
                 if reg_set not in live_intervals:
                     live_intervals[reg_set] = LiveInterval(op_idx)
                 else:
@@ -822,8 +822,8 @@ class LiveIntervals(Mapping[MergedRegSet, LiveInterval]):
         self.__live_intervals = live_intervals
 
     @property
-    def merges_reg_sets(self):
-        return self.__merges_reg_sets
+    def merged_reg_sets(self):
+        return self.__merged_reg_sets
 
     def __getitem__(self, key):
         # type: (MergedRegSet) -> LiveInterval