Skip to content

Commit d3f3b97

Browse files
Update tier1_generator.py
1 parent 8dab8c1 commit d3f3b97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tools/cases_generator/tier1_generator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ def write_uop(
121121

122122
def uses_this(inst: Instruction) -> bool:
123123
if inst.properties.needs_this:
124-
return True, False
124+
return True
125125
for uop in inst.parts:
126126
if not isinstance(uop, Uop):
127127
continue
128128
for cache in uop.caches:
129129
if cache.name != "unused":
130-
return True, False
130+
return True
131131
# Can't be merged into the loop above, because
132132
# this must strictly be performed at the end.
133133
for uop in inst.parts:
@@ -136,7 +136,7 @@ def uses_this(inst: Instruction) -> bool:
136136
for tkn in uop.body:
137137
if (tkn.kind == "IDENTIFIER"
138138
and (tkn.text in {"DEOPT_IF", "EXIT_IF"})):
139-
return True, True
139+
return True
140140
return False, False
141141

142142

0 commit comments

Comments
 (0)