From 57ef34f04144f41f3944027a1efd5a033f4cecb8 Mon Sep 17 00:00:00 2001 From: uz Date: Wed, 19 Aug 2009 12:47:30 +0000 Subject: [PATCH] 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 --- src/cc65/codeopt.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.39.5