Skip to content

Commit 9cbbe93

Browse files
committed
fixed disp field bug
1 parent 0940b17 commit 9cbbe93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uiCA.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ def getReadyForDispatchCycle(self, clock, uop):
12401240

12411241
def latReducedDueToFastPtrChasing(uArchConfig: MicroArchConfig, memAddr: Dict, lastWriteBase: Optional[Instr], lastWriteIndex: Optional[Instr],
12421242
baseRenamedByElim32BitMove: bool):
1243-
return (uArchConfig.fastPointerChasing and (0 <= memAddr['disp'] < 2048) and (not baseRenamedByElim32BitMove) and (lastWriteBase is not None)
1243+
return (uArchConfig.fastPointerChasing and (0 <= memAddr.get('disp', 0) < 2048) and (not baseRenamedByElim32BitMove) and (lastWriteBase is not None)
12441244
and (lastWriteBase.instrStr in ['MOV (R64, M64)', 'MOV (RAX, M64)', 'MOV (R32, M32)', 'MOV (EAX, M32)', 'MOVSXD (R64, M32)', 'POP (R64)'])
12451245
and (('index' not in memAddr) or ((lastWriteIndex is not None) and (lastWriteIndex.uops == 0))))
12461246

0 commit comments

Comments
 (0)