Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2012 Dead assignment not eliminated

open
nobody
None
3
2012-04-23
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