1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-17 20:30:36 +00:00

Fixed an optimization

git-svn-id: svn://svn.cc65.org/cc65/trunk@2263 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-08-11 20:46:51 +00:00
parent 81f94afd5c
commit 5a6ce40b13

View File

@ -673,20 +673,6 @@ static unsigned OptPtrLoad2 (CodeSeg* S)
* ldy * ldy
* ldx #$00 * ldx #$00
* lda (ptr1),y * lda (ptr1),y
*
* adc xxx
* sta ptr1
* pha
* txa
* iny
* adc yyy
* sta ptr1+1
* tax
* pla
* ldy
* ldx #$00
* lda (ptr1),y
* jsr ldauidx
*/ */
{ {
unsigned Changes = 0; unsigned Changes = 0;
@ -799,7 +785,8 @@ static unsigned OptPtrLoad3 (CodeSeg* S)
CE_KnownImm (L[6]) && CE_KnownImm (L[6]) &&
L[6]->Num == 0 && L[6]->Num == 0 &&
CE_IsCallTo (L[7], "ldauidx") && CE_IsCallTo (L[7], "ldauidx") &&
!CS_RangeHasLabel (S, I+1, 7) && !CS_RangeHasLabel (S, I+1, 5) &&
!CE_HasLabel (L[7]) &&
/* Check the label last because this is quite costly */ /* Check the label last because this is quite costly */
(Len = strlen (L[0]->Arg)) > 3 && (Len = strlen (L[0]->Arg)) > 3 &&
L[0]->Arg[0] == '<' && L[0]->Arg[0] == '<' &&