Skip to content

Commit ce421ad

Browse files
committed
Update comment
1 parent 18c78b1 commit ce421ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/cases_generator/analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,7 @@ def compute_properties(op: parser.CodeDef) -> Properties:
869869
)
870870

871871
def expand(items: list[StackItem], oparg: int) -> list[StackItem]:
872+
# Only replace array item with scalar if no more than item is an array
872873
index = -1
873874
for i, item in enumerate(items):
874875
if "oparg" in item.size:
@@ -886,7 +887,6 @@ def expand(items: list[StackItem], oparg: int) -> list[StackItem]:
886887
] + items[index+1:]
887888

888889
def scalarize_stack(stack: StackEffect, oparg: int) -> StackEffect:
889-
# Only scalarize if no more than one input or output is array
890890
stack.inputs = expand(stack.inputs, oparg)
891891
stack.outputs = expand(stack.outputs, oparg)
892892
return stack

0 commit comments

Comments
 (0)