[PATCH] Fix PR34263: Cleaning up latch blocks (re-submission)

Revital1 Eres ERES@il.ibm.com
Mon Dec 17 09:38:00 GMT 2007


Hello,

I integrated your comments in the attached patch and added a testcase.
The patch was tested (bootstrap and regtest) with -O2 on ppc64-linux
and x86_64-linux (including the new testcase).

OK for mainline?

Thanks,
Revital


2007-12-17  Andrew Pinski  <andrew_pinski@playstation.sony.com>
            Mircea Namolaru  <namolaru@il.ibm.com>
            Vladimir Yanovsky  <yanov@il.ibm.com>>

        PR tree-optimization/34263
        * tree-outof-ssa.c (process_single_block_loop_latch,.
        contains_tree_r): New functions.
        (analyze_edges_for_bb): Call process_single_block_loop_latch
        function to empty single-basic-block latch block if possible..

testsuite:

        PR tree-optimization/34263
        * gcc.dg/pr34263.c:  New testcase.

(See attached file: patch_cleanup_latch_17_12.txt)(See attached file:
pr34263.c.txt)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_cleanup_latch_17_12.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20071217/c2f809fc/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr34263.c.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20071217/c2f809fc/attachment-0001.txt>


More information about the Gcc-patches mailing list