X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fcoptind.h;h=04530f1941fb6118c2b1339a87e938c9bfa4ae09;hb=23fbf3ff2a8956483bffaf1943967e04074cf443;hp=bf67a20eb4bcd17859959d22753d321ba84e1cdd;hpb=f78237a6a67eae319b50df6cd34c32ed1f05b4d8;p=cc65 diff --git a/src/cc65/coptind.h b/src/cc65/coptind.h index bf67a20eb..04530f194 100644 --- a/src/cc65/coptind.h +++ b/src/cc65/coptind.h @@ -48,6 +48,9 @@ +unsigned OptRTSJumps (CodeSeg* S); +/* Replace jumps to RTS by RTS */ + unsigned OptDeadJumps (CodeSeg* S); /* Remove dead jumps (jumps to the next instruction) */ @@ -86,6 +89,15 @@ unsigned OptCondBranches (CodeSeg* S); unsigned OptUnusedLoads (CodeSeg* S); /* Remove loads of registers where the value loaded is not used later. */ +unsigned OptDuplicateLoads (CodeSeg* S); +/* Remove loads of registers where the value loaded is already in the register. */ + +unsigned OptStoreLoad (CodeSeg* S); +/* Remove a store followed by a load from the same location. */ + +unsigned OptTransfers (CodeSeg* S); +/* Remove transfers from one register to another and back */ + unsigned OptBranchDist (CodeSeg* S); /* Change branches for the distance needed. */