aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRazya Ladelsky <razya@il.ibm.com>2009-09-03 09:10:36 +0000
committerRazya Ladelsky <razya@gcc.gnu.org>2009-09-03 09:10:36 +0000
commite7df16a549dce94f3360c0e3b87698adc8287125 (patch)
treeb32626bcf7e42c84c3a1e6eac8a5e4415b318ac0 /gcc
parent785aa2a70653f35bd38f0880615e7b1d11c2e436 (diff)
downloadgcc-e7df16a549dce94f3360c0e3b87698adc8287125.zip
gcc-e7df16a549dce94f3360c0e3b87698adc8287125.tar.gz
gcc-e7df16a549dce94f3360c0e3b87698adc8287125.tar.bz2
tree-parloops.c (separate_decls_in_region): Change the condition checking if there are reductions in the loop.
* tree-parloops.c (separate_decls_in_region): Change the condition checking if there are reductions in the loop. From-SVN: r151373
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-parloops.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 67a7bdd..d419771 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2009-09-03 Razya Ladelsky <razya@il.ibm.com>
+ * tree-parloops.c (separate_decls_in_region): Change the condition
+ checking if there are reductions in the loop.
+
+2009-09-03 Razya Ladelsky <razya@il.ibm.com>
+
PR tree-optimization/38275
* tree-parloops.c (parallelize_loops): Replace profitability condition
diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c
index b1ef8355..b671fd7 100644
--- a/gcc/tree-parloops.c
+++ b/gcc/tree-parloops.c
@@ -1135,7 +1135,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 && reduction_list == 0)
+ if (htab_elements (name_copies) == 0 && htab_elements (reduction_list)==0)
{
/* It may happen that there is nothing to copy (if there are only
loop carried and external variables in the loop). */