From: Greg King Date: Mon, 14 Dec 2015 16:50:43 +0000 (-0500) Subject: Added another op-code to the test pattern for a right-shift optimizer in cc65. X-Git-Tag: V2.16~193^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F246%2Fhead;p=cc65 Added another op-code to the test pattern for a right-shift optimizer in cc65. --- diff --git a/src/cc65/coptshift.c b/src/cc65/coptshift.c index d6af13b76..92210ebb5 100644 --- a/src/cc65/coptshift.c +++ b/src/cc65/coptshift.c @@ -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 &&