1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-29 17:56:21 +00:00

Added another op-code to the test pattern for a right-shift optimizer in cc65.

This commit is contained in:
Greg King 2015-12-14 11:50:43 -05:00
parent 5e7c7d78fc
commit bdbf75372c

View File

@ -341,7 +341,7 @@ unsigned OptShift2 (CodeSeg* S)
L[0] = CS_GetEntry (S, I);
/* Check for the sequence */
if (L[0]->OPC == OP65_BPL &&
if ((L[0]->OPC == OP65_BPL || L[0]->OPC == OP65_BCC) &&
L[0]->JumpTo != 0 &&
CS_GetEntries (S, L+1, I+1, 3) &&
L[1]->OPC == OP65_DEX &&