From: Aditya Kumar Date: Fri, 6 Nov 2015 20:43:52 +0000 (+0000) Subject: do not collect cold loops in scops X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b4487cbc5eb352e5ab198bca6edd71e4467befa5;p=gcc.git 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 --- 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_"