Skip to content

Commit

Permalink
do not collect cold loops in scops
Browse files Browse the repository at this point in the history
           * graphite-scop-detection.c (loop_is_valid_scop): Call
           optimize_loop_nest_for_speed_p.

Co-Authored-By: Sebastian Pop <[email protected]>

From-SVN: r229890
  • Loading branch information
Aditya Kumar authored and sebpop committed Nov 6, 2015
1 parent 40856c7 commit b4487cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2015-11-06 Aditya Kumar <[email protected]>
Sebastian Pop <[email protected]>

* graphite-scop-detection.c (loop_is_valid_scop): Call
optimize_loop_nest_for_speed_p.

2015-11-06 Aditya Kumar <[email protected]>
Sebastian Pop <[email protected]>

Expand Down
7 changes: 7 additions & 0 deletions gcc/graphite-scop-detection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_"
Expand Down

0 comments on commit b4487cb

Please sign in to comment.