Just comment and formatting changes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4069 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -769,7 +769,7 @@ unsigned OptCondBranches1 (CodeSeg* S)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((E->Info & OF_CBRA) != 0 && /* It's a conditional branch */
|
if ((E->Info & OF_CBRA) != 0 && /* It's a conditional branch */
|
||||||
(L = E->JumpTo) != 0 && /* ..referencing a local label */
|
(L = E->JumpTo) != 0 && /* ..referencing a local label */
|
||||||
(N = CS_GetNextEntry (S, I)) != 0 && /* There is a following entry */
|
(N = CS_GetNextEntry (S, I)) != 0 && /* There is a following entry */
|
||||||
(N->Info & OF_UBRA) != 0 && /* ..which is an uncond branch, */
|
(N->Info & OF_UBRA) != 0 && /* ..which is an uncond branch, */
|
||||||
!CE_HasLabel (N) && /* ..has no label attached */
|
!CE_HasLabel (N) && /* ..has no label attached */
|
||||||
@@ -801,7 +801,7 @@ unsigned OptCondBranches1 (CodeSeg* S)
|
|||||||
|
|
||||||
unsigned OptCondBranches2 (CodeSeg* S)
|
unsigned OptCondBranches2 (CodeSeg* S)
|
||||||
/* If on entry to a "rol a" instruction the accu is zero, and a beq/bne follows,
|
/* If on entry to a "rol a" instruction the accu is zero, and a beq/bne follows,
|
||||||
* we can remove the rol and branch on the state of the carry.
|
* we can remove the rol and branch on the state of the carry flag.
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
unsigned Changes = 0;
|
unsigned Changes = 0;
|
||||||
@@ -839,12 +839,10 @@ unsigned OptCondBranches2 (CodeSeg* S)
|
|||||||
|
|
||||||
/* Remember, we had changes */
|
/* Remember, we had changes */
|
||||||
++Changes;
|
++Changes;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Next entry */
|
/* Next entry */
|
||||||
++I;
|
++I;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Free register info */
|
/* Free register info */
|
||||||
@@ -1944,7 +1942,7 @@ unsigned OptPrecalc (CodeSeg* S)
|
|||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
unsigned OptBranchDist (CodeSeg* S)
|
unsigned OptBranchDist (CodeSeg* S)
|
||||||
/* Change branches for the distance needed. */
|
/* Change branches for the distance needed. */
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user