#76 Optimized trinary op. at MC51 port

closed-out-of-date
Maarten Brock
None
5
2007-06-09
2006-11-05
Hubert Sack
No

I changed 2 lines in SDCCPeeph.c and added peepholes 270.x
I think it would be better to do implement it a lot
states earlier, but I don't know exactly where and how.

I added a small source to show the difference.
Take a look at the generated code of lines 101 and 131.

Sorry for the german comments - but it's a real (and
small) source file.

Discussion

  • Hubert Sack
    Hubert Sack
    2006-11-05

    Source, SDCCPeeph.c, mcs51/peeph.def (my version!)

     
    Attachments
  • Hubert Sack
    Hubert Sack
    2006-11-05

    • priority: 5 --> 2
     
  • Maarten Brock
    Maarten Brock
    2007-06-09

    • priority: 2 --> 5
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-out-of-date
     
  • Maarten Brock
    Maarten Brock
    2007-06-09

    Logged In: YES
    user_id=888171
    Originator: NO

    SDCC 2.7.2 #4842 now generates compact code without peephole rules.