]> git.sur5r.net Git - cc65/blobdiff - src/cc65/coptind.c
Added HuC6280 cpu (will be treated as a 65C02)
[cc65] / src / cc65 / coptind.c
index ff121749fd8c4189d3d47332d5856f903733be1f..4d7d8619fff1c9922d783494797d6e6d5dcac391 100644 (file)
@@ -406,17 +406,12 @@ unsigned OptJumpCascades (CodeSeg* S)
                /* Remember, we had changes */
                ++Changes;
 
-               /* Done */
-               continue;
-
-           }
-
            /* Check if both are conditional branches, and the condition of
             * the second is the inverse of that of the first. In this case,
             * the second branch will never be taken, and we may jump directly
             * to the instruction behind this one.
             */
-           if ((E->Info & OF_CBRA) != 0 && (N->Info & OF_CBRA) != 0) {
+           } else if ((E->Info & OF_CBRA) != 0 && (N->Info & OF_CBRA) != 0) {
 
                CodeEntry* X;   /* Instruction behind N */
                CodeLabel* LX;  /* Label attached to X */
@@ -448,9 +443,6 @@ unsigned OptJumpCascades (CodeSeg* S)
                /* Remember, we had changes */
                ++Changes;
 
-               /* Done */
-               continue;
-
            }
        }