Commit b2a8d77a by Martin Jambor Committed by Martin Jambor

Add two missing dump_enabled_p calls

2019-02-01  Martin Jambor  <mjambor@suse.cz>

	* omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
	missed optimization dump with dump_enabled_p.

From-SVN: r268451
parent 284c00e2
2019-02-01 Martin Jambor <mjambor@suse.cz>
* omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
missed optimization dump with dump_enabled_p.
2019-02-01 Richard Biener <rguenther@suse.de> 2019-02-01 Richard Biener <rguenther@suse.de>
PR middle-end/88597 PR middle-end/88597
......
...@@ -745,9 +745,10 @@ grid_target_follows_gridifiable_pattern (gomp_target *target, grid_prop *grid) ...@@ -745,9 +745,10 @@ grid_target_follows_gridifiable_pattern (gomp_target *target, grid_prop *grid)
tree group_size = NULL; tree group_size = NULL;
if (!teams) if (!teams)
{ {
dump_printf_loc (MSG_MISSED_OPTIMIZATION, tloc, if (dump_enabled_p ())
GRID_MISSED_MSG_PREFIX "it does not have a sole teams " dump_printf_loc (MSG_MISSED_OPTIMIZATION, tloc,
"construct in it.\n"); GRID_MISSED_MSG_PREFIX "it does not have a sole "
"teams construct in it.\n");
return false; return false;
} }
...@@ -788,9 +789,10 @@ grid_target_follows_gridifiable_pattern (gomp_target *target, grid_prop *grid) ...@@ -788,9 +789,10 @@ grid_target_follows_gridifiable_pattern (gomp_target *target, grid_prop *grid)
gomp_for *dist = dyn_cast <gomp_for *> (stmt); gomp_for *dist = dyn_cast <gomp_for *> (stmt);
if (!dist) if (!dist)
{ {
dump_printf_loc (MSG_MISSED_OPTIMIZATION, tloc, if (dump_enabled_p ())
GRID_MISSED_MSG_PREFIX "the teams construct does not " dump_printf_loc (MSG_MISSED_OPTIMIZATION, tloc,
"have a single distribute construct in it.\n"); GRID_MISSED_MSG_PREFIX "the teams construct does not "
"have a single distribute construct in it.\n");
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment