Skip to content

Commit 76030e9

Browse files
committed
Address code review
1 parent 40988a0 commit 76030e9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tools/cases_generator/analyzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,9 +1276,9 @@ def get_uop_cache_depths(uop: Uop) -> Iterator[tuple[int, int, int]]:
12761276
inputs, outputs = 0, outputs-inputs
12771277
else:
12781278
inputs, outputs = inputs-outputs, 0
1279-
while inputs <= 3 and outputs <= 3:
1279+
while inputs <= MAX_CACHED_REGISTER and outputs <= MAX_CACHED_REGISTER:
12801280
if inputs != ideal_inputs:
1281-
yield inputs, outputs, inputs
1281+
yield inputs, outputs, inputs
12821282
inputs += 1
12831283
outputs += 1
12841284

Tools/cases_generator/tier2_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def declare_variables(uop: Uop, out: CWriter) -> None:
6161

6262
class Tier2Emitter(Emitter):
6363

64-
def __init__(self, out: CWriter, labels: dict[str, Label], exit_cache_depth:int):
64+
def __init__(self, out: CWriter, labels: dict[str, Label], exit_cache_depth: int):
6565
super().__init__(out, labels)
6666
self._replacers["oparg"] = self.oparg
6767
self.exit_cache_depth = exit_cache_depth
@@ -141,7 +141,7 @@ def oparg(
141141
return True
142142

143143

144-
def write_uop(uop: Uop, emitter: Emitter, stack: Stack, cached_items:int=0) -> Stack:
144+
def write_uop(uop: Uop, emitter: Emitter, stack: Stack, cached_items: int = 0) -> Stack:
145145
locals: dict[str, Local] = {}
146146
try:
147147
emitter.out.start_line()

0 commit comments

Comments
 (0)