From: Jacob Lifshay Date: Thu, 13 Oct 2022 02:16:06 +0000 (-0700) Subject: fix typo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ae3767a57615edc1a9c2f214113858056fa21cf;p=bigint-presentation-code.git fix typo --- diff --git a/src/bigint_presentation_code/toom_cook.py b/src/bigint_presentation_code/toom_cook.py index 0c4e5b4..e8e97bf 100644 --- a/src/bigint_presentation_code/toom_cook.py +++ b/src/bigint_presentation_code/toom_cook.py @@ -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