aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-09-26 14:28:13 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-09-26 14:28:13 +0000
commitca617fd2144dd58a2d26887239e86e5b32eba87c (patch)
treed76b80720d49418a36166446048474c205a0b04a /gcc/tree-data-ref.c
parent343cb5897c673cb75233f4d0a991c0bec11c1f53 (diff)
downloadgcc-ca617fd2144dd58a2d26887239e86e5b32eba87c.zip
gcc-ca617fd2144dd58a2d26887239e86e5b32eba87c.tar.gz
gcc-ca617fd2144dd58a2d26887239e86e5b32eba87c.tar.bz2
graphite-scop-detection.c (scop_detection::build_scop_depth): Rewrite, fold in ...
2017-09-26 Richard Biener <rguenther@suse.de> * graphite-scop-detection.c (scop_detection::build_scop_depth): Rewrite, fold in ... (scop_detection::build_scop_breadth): ... this. Removed. (scop_detection::loop_is_valid_in_scop): Fold into single caller. (scop_detection::harmful_stmt_in_bb): Likewise. (scop_detection::graphite_can_represent_stmt): Likewise. (scop_detection::loop_body_is_valid_scop): Likewise. Remove recursion. (scop_detection::can_represent_loop): Remove recursion, fold in ... (scop_detection::can_represent_loop_1): ... this. Removed. (scop_detection::harmful_loop_in_region): Simplify after inlining the above and remove more quadraticness. (build_scops): Adjust. * tree-data-ref.c (loop_nest_has_data_refs): Remove pointless quadraticness. From-SVN: r253203
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r--gcc/tree-data-ref.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c
index 26387f8..a414fbf 100644
--- a/gcc/tree-data-ref.c
+++ b/gcc/tree-data-ref.c
@@ -4944,17 +4944,6 @@ loop_nest_has_data_refs (loop_p loop)
}
}
free (bbs);
-
- if (loop->inner)
- {
- loop = loop->inner;
- while (loop)
- {
- if (loop_nest_has_data_refs (loop))
- return true;
- loop = loop->next;
- }
- }
return false;
}