Hi, While optimizing some queue-related code I found a few peephole optimizations that I think are missing (in sdcc 3.9). I do not have much experience with sdcc's optimizer so it might be that it is not included for a good reason. Here's my def file:
replace { mov a,%1 inc a mov %1,a } by { ; Peephole ??? replaced inc with direct inc %1 } replace { mov a,%1 dec a mov %1,a } by { ; Peephole ??? replaced dec with direct dec %1 } replace { cjne %1,%2,%3 clr c } by { cjne %1,%2,%3 ; Peephole ??? removed redundant clr c } Let me know if this is useful (or broken). -- whitequark _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user