[dataflow]: PATCH COMMITED to fix dce one last time.

Kenneth Zadeck zadeck@naturalbridge.com
Wed May 23 12:57:00 GMT 2007


I believe that this time, I have gotten it correct. 

Before reload, both the HARD_FRAME_POINTER and the FRAME_POINTER are
artificial uses and after reload, the HARD_FRAME_POINTER is an
artificial use iff frame_pointer_needed. 

There is no longer a test in dce for RTX_FRAME_RELATED_P.

Furthermore, there are now no uses for REG_MAYBE_DEAD notes, so the
zillion places that create them have been changed. 

There was also one stupid frag of code left over in dse.c that has been
removed.
This has been bootstrapped and regression tested on x86-64, x86-32, ppc
and ia-64.

kenny

2007-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>

    * df-scan.c (df_get_regular_block_artificial_uses): Set the
    HARD_FRAME_POINTER not the FRAME_POINTER after reload.  Set both
    the HARD_FRAME_POINTER and the FRAME_POINTER before reload.
    * dse.c (const_or_frame_p): Removed unnecessary test.
    * config/s390/s390.c (s390_emit_prologue): Removed REG_MAYBE_DEAD
    notes.
    * config/spu/spu.c (frame_emit_add_imm, spu_expand_prologue): Ditto.
    * config/i386/i386.c (ix86_expand_prologue): Ditto.
    * config/sh/sh.c (sh_expand_prologue): Ditto.
    * config/sh/sh.md (define_expand): Ditto.
    * config/iq2000/iq2000.c (iq2000_expand_prologue): Ditto.
    * config/mn10300/mn10300.c (expand_prologue): Ditto.
    * config/ia64/ia64.c (spill_restore_mem, ia64_expand_prologue): Ditto.
    * config/m68k/m68k.c (m68k_expand_prologue): Ditto.
    * config/rs6000/rs6000.c (rs6000_maybe_dead): Removed.
    (rs6000_emit_load_toc_table, rs6000_emit_prologue): Removed calls
    to rs6000_maybe_dead.
    * config/bfin/bfin.c (expand_interrupt_handler_prologue,
    bfin_load_pic_reg): Removed REG_MAYBE_DEAD notes.
    * reg-notes.def (MAYBE_DEAD): Removed.
    * dce.c (deletable_insn_p): Removed test of RTX_FRAME_RELATED_P.
   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dce8.diff
Type: text/x-patch
Size: 20339 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070523/4418b17c/attachment.bin>


More information about the Gcc-patches mailing list