Skip to content

Commit 4104065

Browse files
committed
Remove unused function
1 parent a766382 commit 4104065

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Tools/cases_generator/analyzer.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -747,20 +747,6 @@ def always_exits(op: parser.InstDef) -> bool:
747747
return True
748748
return False
749749

750-
751-
def stack_effect_only_peeks(instr: parser.InstDef) -> bool:
752-
stack_inputs = [s for s in instr.inputs if not isinstance(s, parser.CacheEffect)]
753-
if len(stack_inputs) != len(instr.outputs):
754-
return False
755-
if len(stack_inputs) == 0:
756-
return False
757-
if any(s.cond for s in stack_inputs) or any(s.cond for s in instr.outputs):
758-
return False
759-
return all(
760-
(s.name == other.name and s.type == other.type and s.size == other.size)
761-
for s, other in zip(stack_inputs, instr.outputs)
762-
)
763-
764750
def compute_properties(op: parser.InstDef) -> Properties:
765751
escaping_calls = find_escaping_api_calls(op)
766752
has_free = (

0 commit comments

Comments
 (0)