Here's a small patch to the Z80 peephole rules:
I've added jump reorganization rules for jumps conditional jumps testing the carry bit; these are the analogeous to the existing ones for the zero bit. I've changed some jump reorganization rules to use replace restart instead of replace since I saw some cases where this gave further optimizations in my code. I've added a rule to optimize 16 bit adds when one operand is a multiple of 256.
I've run the regression tests, they pass without failures.
Log in to post a comment.