Small fix for stitch.py

Change-Id: I8435aaeb4452b54e5563bbdb47b269f9d0a97b3a


[ROCm/rocprofiler commit: a5192bb9b3]
This commit is contained in:
Giovanni Baraldi
2024-11-20 15:28:51 -06:00
orang tua 473af5ebe8
melakukan 3979438e90
+4 -1
Melihat File
@@ -146,7 +146,10 @@ class RegisterWatchList:
# Matches tokens in reverse order
def try_match_swapped(self, i, line, increment):
return self.insts[i + 1].type == self.code[line][1] and self.insts[i].type == self.code[line + 1][1]
try:
return self.insts[i + 1].type == self.code[line][1] and self.insts[i].type == self.code[line + 1][1]
except:
return False
# Translates PC values to instructions, for auto captured ISA
class PCTranslator: