fixed UnboundLocalError if tp assignment loop is not executed

This commit is contained in:
JanLJL
2023-07-17 14:52:22 +02:00
parent 080eb8c7f0
commit 7b83ef7b50
2 changed files with 11 additions and 0 deletions

View File

@@ -8191,6 +8191,16 @@ instruction_forms:
port_pressure: [[1, '1'], [1, '5']] # model_importer.py instructions.xml ICL
throughput: 1.0 # model_importer.py instructions.xml ICL
uops: 2 # model_importer.py instructions.xml ICL
- name: IMUL # model_importer.py instructions.xml ICL
operands: # model_importer.py instructions.xml ICL
- class: register # model_importer.py instructions.xml ICL
name: gpr # model_importer.py instructions.xml ICL
- class: register # model_importer.py instructions.xml ICL
name: gpr # model_importer.py instructions.xml ICL
latency: 3 # model_importer.py instructions.xml ICL
port_pressure: [[1, '1']] # model_importer.py instructions.xml ICL
throughput: 1.0 # model_importer.py instructions.xml ICL
uops: 1 # model_importer.py instructions.xml ICL
- name: NEG # model_importer.py instructions.xml ICL
operands: # model_importer.py instructions.xml ICL
- class: register # model_importer.py instructions.xml ICL

View File

@@ -42,6 +42,7 @@ class ArchSemantics(ISASemantics):
INC = 0.01
kernel.reverse()
port_list = self._machine_model.get_ports()
multiple_assignments = False
for idx, instruction_form in enumerate(kernel[start:], start):
multiple_assignments = False
# if iform has multiple possible port assignments, check all in a DFS manner and take the best