This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Clean up ifcvt.c a bit


On 1/6/07, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
Hello,

This is the first of (probably) a few patches to clean up ifcvt.c to
make it ready for working in cfglayout mode.

The first part of this patch just factors nearly identical code into
a new function.
The second part stops us from copying global_live_at_end.  We don't
have to do this, because merge_blocks already takes care of it.

Bootstrapped (c,c++,objc,fortran) + tested on x86-64-unknown-linux-gnu.
OK for trunk?

This is ok.


Thanks,
Richard.


Gr.
Steven

        * ifcvt.c (cond_move_convert_if_block): New function, code
        factored out from...
        (cond_move_process_if_block): ...here.  Call the new function
        on the THEN and ELSE blocks.
        (merge_if_block): Do not copy global_live_at_end, merge_blocks
        already takes care of this.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]