Menu

#2012 Dead assignment not eliminated

closed-out-of-date
None
other
3
2018-10-29
2012-04-23
No

From the muldiv regression test, muldiv_storage_static_type_char_attr_none asm code for c code line 89:

; genAssign
mov #0xCE,*_testDiv_sloc0_1_0
; genAssign
mov #0xD1,*_testDiv_sloc0_1_0

(this is from hc08, on osome ther ports, such as z80, the issue is masked by the peephole optimizer)
I wonder why dead code elimination doesn't kill the first assignment.

Philipp

Discussion

  • Ben Shi

    Ben Shi - 2015-07-22
    • Category: --> redundancy elimination
     
  • Philipp Klaus Krause

    • status: open --> pending-out-of-date
    • assigned_to: Philipp Klaus Krause
    • Category: redundancy elimination --> other
     
  • Philipp Klaus Krause

    I cannot reproduce this in current SDCC [r10516]. It probably got fixed long ago.

    Philipp

     
  • Philipp Klaus Krause

    • status: pending-out-of-date --> closed-out-of-date
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.