From: uz Date: Wed, 19 Aug 2009 12:47:30 +0000 (+0000) Subject: Apply OptTransfers3 again in a later step, so it gets another chance. X-Git-Tag: V2.13.0rc1~215 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=57ef34f04144f41f3944027a1efd5a033f4cecb8;p=cc65 Apply OptTransfers3 again in a later step, so it gets another chance. git-svn-id: svn://svn.cc65.org/cc65/trunk@4040 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/codeopt.c b/src/cc65/codeopt.c index d94aa8be7..d2da19526 100644 --- a/src/cc65/codeopt.c +++ b/src/cc65/codeopt.c @@ -1536,6 +1536,7 @@ static unsigned RunOptGroup5 (CodeSeg* S) Changes += RunOptFunc (S, &DOptPush1, 1); Changes += RunOptFunc (S, &DOptPush2, 1); + /* Repeat some of the other optimizations now */ Changes += RunOptFunc (S, &DOptUnusedLoads, 1); Changes += RunOptFunc (S, &DOptTransfers2, 1); @@ -1577,6 +1578,7 @@ static unsigned RunOptGroup6 (CodeSeg* S) Changes += RunOptFunc (S, &DOptUnusedLoads, 1); Changes += RunOptFunc (S, &DOptJumpTarget1, 5); Changes += RunOptFunc (S, &DOptStore5, 1); + Changes += RunOptFunc (S, &DOptTransfers3, 1); } /* Adjust branch distances */