6 ; Peephole
1a
- removed redundant pula
/psha
15 ; Peephole
1b
- removed redundant pula
/psha
24 ; Peephole
1c
- removed redundant pula
/psha
34 ; Peephole
2a
- eliminated jmp
37 } if
labelInRange(%5), labelRefCountChange(%1 -1)
44 ; Peephole
2b
- eliminated jmp
47 } if
labelInRange(%5), labelRefCountChange(%1 -1)
54 ; Peephole
2c
- eliminated jmp
57 } if
labelInRange(%5), labelRefCountChange(%1 -1)
64 ; Peephole
2d
- eliminated jmp
67 } if
labelInRange(%5), labelRefCountChange(%1 -1)
74 ; Peephole
2e
- eliminated jmp
77 } if
labelInRange(%5), labelRefCountChange(%1 -1)
84 ; Peephole
2f
- eliminated jmp
87 } if
labelInRange(%5), labelRefCountChange(%1 -1)
94 ; Peephole
2g
- eliminated jmp
97 } if
labelInRange(%5), labelRefCountChange(%1 -1)
104 ; Peephole
2h
- eliminated jmp
107 } if
labelInRange(%5), labelRefCountChange(%1 -1)
114 ; Peephole
2i
- eliminated jmp
117 } if
labelInRange(%5), labelRefCountChange(%1 -1)
124 ; Peephole
2j
- eliminated jmp
127 } if
labelInRange(%5), labelRefCountChange(%1 -1)
134 ; Peephole
2k
- eliminated jmp
137 } if
labelInRange(%5), labelRefCountChange(%1 -1)
144 ; Peephole
2l - eliminated jmp
147 } if
labelInRange(%5), labelRefCountChange(%1 -1)
154 ; Peephole
2m
- eliminated jmp
157 } if
labelInRange(%5), labelRefCountChange(%1 -1)
164 ; Peephole
2n
- eliminated jmp
167 } if
labelInRange(%5), labelRefCountChange(%1 -1)
172 ; Peephole
3 - shortened jmp to bra
174 } if
labelInRange(%5)
180 ; Peephole
4a
- eliminated redundant tsta
188 ; Peephole
4b
- eliminated redundant tstx
195 ; Peephole
6a
- replaced jmp to rts with rts
197 } if
optimizeReturn(), labelIsReturnOnly(%5), labelRefCountChange(%5 -1)
202 ; Peephole
6b
- replaced jmp to rts with rts
204 } if
optimizeReturn(), labelIsReturnOnly(%5), labelRefCountChange(%5 -1)
210 ; Peephole
7a
- eliminated branch
212 } if
labelRefCountChange(%1 -1)
218 ; Peephole
7b
- eliminated branch
220 } if
labelRefCountChange(%1 -1)
226 ; Peephole
7c
- eliminated branch
228 } if
labelRefCountChange(%1 -1)
235 ; Peephole
7d
- eliminated branch
238 } if
labelRefCountChange(%1 -1)
244 ; Peephole
10a
- combined cmp
/beq
252 ; Peephole
10b
- combined cmp
/beq
260 ; Peephole
10c
- combined dec
/bne
264 // should be one of the last peepholes
268 ; Peephole
500 removed redundant label
%1
269 } if
labelRefCount(%1 0)
275 ; Peephole
501 did tail call optimization.
277 } if
optimizeReturn()