#81 Z80 jump and addition peephole improvement

closed
nobody
None
5
2007-04-14
2007-03-09
No

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.

Discussion

  • Philipp Klaus Krause

    Logged In: YES
    user_id=564030
    Originator: YES

    I'm working on a bigger Z80 peephole patch. Please don't apply this one unless I don't post an update for some weeks.

     
  • Philipp Klaus Krause

    • status: open --> closed
     
  • Philipp Klaus Krause

    Logged In: YES
    user_id=564030
    Originator: YES

    Obsolete, use patch #1700823 instead.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks