We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18c78b1 commit ce421adCopy full SHA for ce421ad
Tools/cases_generator/analyzer.py
@@ -869,6 +869,7 @@ def compute_properties(op: parser.CodeDef) -> Properties:
869
)
870
871
def expand(items: list[StackItem], oparg: int) -> list[StackItem]:
872
+ # Only replace array item with scalar if no more than item is an array
873
index = -1
874
for i, item in enumerate(items):
875
if "oparg" in item.size:
@@ -886,7 +887,6 @@ def expand(items: list[StackItem], oparg: int) -> list[StackItem]:
886
887
] + items[index+1:]
888
889
def scalarize_stack(stack: StackEffect, oparg: int) -> StackEffect:
- # Only scalarize if no more than one input or output is array
890
stack.inputs = expand(stack.inputs, oparg)
891
stack.outputs = expand(stack.outputs, oparg)
892
return stack
0 commit comments