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 <s.pop@samsung.com> From-SVN: r229890
This commit is contained in:
parent
40856c71be
commit
b4487cbc5e
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
|
||||
Sebastian Pop <s.pop@samsung.com>
|
||||
|
||||
* graphite-scop-detection.c (loop_is_valid_scop): Call
|
||||
optimize_loop_nest_for_speed_p.
|
||||
|
||||
2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
|
||||
Sebastian Pop <s.pop@samsung.com>
|
||||
|
||||
|
|
|
@ -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_"
|
||||
|
|
Loading…
Add table
Reference in a new issue