Commit c0399c47 by Razya Ladelsky Committed by Razya Ladelsky

re PR tree-optimization/38156 (gcc.dg/tree-ssa/update-unswitch-1.c fails when…

re PR tree-optimization/38156 (gcc.dg/tree-ssa/update-unswitch-1.c fails when compiled with -ftree-parallelize-loops=4)

2008-11-19  Razya Ladelsky  <razya@il.ibm.com>

        PR target/38156
        * tree-parloops.c (loop_parallel_p): NULL vect_dump.
        (separate_decls_in_region): Create shared struct even when there
        are only reductions.

From-SVN: r142004
parent fc6f1e05
2008-11-19 Razya Ladelsky <razya@il.ibm.com>
PR target/38156
* tree-parloops.c (loop_parallel_p): NULL vect_dump.
(separate_decls_in_region): Create shared struct even when there
are only reductions.
2008-11-19 Hariharan Sandanagobalane <hariharan@picochip.com>
* config/picochip/picochip.c (headers): Remove an unnecessary
header file.
......
......@@ -278,6 +278,7 @@ loop_parallel_p (struct loop *loop, htab_t reduction_list,
return false;
}
vect_dump = NULL;
simple_loop_info = vect_analyze_loop_form (loop);
for (gsi = gsi_start_phis (loop->header); !gsi_end_p (gsi); gsi_next (&gsi))
......@@ -1193,7 +1194,7 @@ separate_decls_in_region (edge entry, edge exit, htab_t reduction_list,
VEC_free (basic_block, heap, body);
if (htab_elements (name_copies) == 0)
if (htab_elements (name_copies) == 0 && reduction_list == 0)
{
/* It may happen that there is nothing to copy (if there are only
loop carried and external variables in the loop). */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment