From b4487cbc5eb352e5ab198bca6edd71e4467befa5 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Date: Fri, 6 Nov 2015 20:43:52 +0000 Subject: [PATCH] do not collect cold loops in scops * graphite-scop-detection.c (loop_is_valid_scop): Call optimize_loop_nest_for_speed_p. Co-Authored-By: Sebastian Pop From-SVN: r229890 --- gcc/ChangeLog | 6 ++++++ gcc/graphite-scop-detection.c | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 04bc2b49659..c5c9eedd864 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-11-06 Aditya Kumar + Sebastian Pop + + * graphite-scop-detection.c (loop_is_valid_scop): Call + optimize_loop_nest_for_speed_p. + 2015-11-06 Aditya Kumar Sebastian Pop diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c index b1f2ebc20a2..9fb82645501 100644 --- a/gcc/graphite-scop-detection.c +++ b/gcc/graphite-scop-detection.c @@ -959,6 +959,13 @@ scop_detection::loop_is_valid_scop (loop_p loop, sese_l scop) const if (!scop) return false; + if (!optimize_loop_nest_for_speed_p (loop)) + { + DEBUG_PRINT (dp << "[scop-detection-fail] loop_" + << loop->num << " is not on a hot path.\n"); + return false; + } + if (!can_represent_loop (loop, scop)) { DEBUG_PRINT (dp << "[scop-detection-fail] cannot represent loop_" -- 2.30.2