From: Steven Hugg Date: Thu, 14 Mar 2019 15:00:02 +0000 (-0400) Subject: rearranged order of new optimizations to better handle -Oi flag X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dca99d59e51515dbf511271afa093247dbd6869a;p=cc65 rearranged order of new optimizations to better handle -Oi flag --- diff --git a/src/cc65/codeopt.c b/src/cc65/codeopt.c index d920f001a..498aa0ff2 100644 --- a/src/cc65/codeopt.c +++ b/src/cc65/codeopt.c @@ -1249,8 +1249,9 @@ static unsigned RunOptGroup1 (CodeSeg* S) Changes += RunOptFunc (S, &DOptPtrLoad4, 1); Changes += RunOptFunc (S, &DOptPtrLoad5, 1); Changes += RunOptFunc (S, &DOptPtrLoad6, 1); + Changes += RunOptFunc (S, &DOptPtrLoad18, 1); /* Before OptPtrLoad7 */ + Changes += RunOptFunc (S, &DOptPtrLoad19, 1); /* Before OptPtrLoad7 */ Changes += RunOptFunc (S, &DOptPtrLoad7, 1); - Changes += RunOptFunc (S, &DOptPtrLoad18, 1); /* Before OptPtrLoad11 */ Changes += RunOptFunc (S, &DOptPtrLoad11, 1); Changes += RunOptFunc (S, &DOptPtrLoad12, 1); Changes += RunOptFunc (S, &DOptPtrLoad13, 1); @@ -1258,7 +1259,6 @@ static unsigned RunOptGroup1 (CodeSeg* S) Changes += RunOptFunc (S, &DOptPtrLoad15, 1); Changes += RunOptFunc (S, &DOptPtrLoad16, 1); Changes += RunOptFunc (S, &DOptPtrLoad17, 1); - Changes += RunOptFunc (S, &DOptPtrLoad19, 1); Changes += RunOptFunc (S, &DOptBNegAX1, 1); Changes += RunOptFunc (S, &DOptBNegAX2, 1); Changes += RunOptFunc (S, &DOptBNegAX3, 1);