aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-grid.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2019-02-01 17:15:36 +0100
committerMartin Jambor <jamborm@gcc.gnu.org>2019-02-01 17:15:36 +0100
commitb2a8d77a9927364140ea261b106e8f260fee0fca (patch)
tree6a75441404f5919c64e1255a492f3819cb3b3c24 /gcc/omp-grid.c
parent284c00e2109c4170bd8fd6f5a6d5e2b3ba7a8d4f (diff)
downloadgcc-b2a8d77a9927364140ea261b106e8f260fee0fca.zip
gcc-b2a8d77a9927364140ea261b106e8f260fee0fca.tar.gz
gcc-b2a8d77a9927364140ea261b106e8f260fee0fca.tar.bz2
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
Diffstat (limited to 'gcc/omp-grid.c')
-rw-r--r--gcc/omp-grid.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/omp-grid.c b/gcc/omp-grid.c
index 12029b7..79e9405 100644
--- a/gcc/omp-grid.c
+++ b/gcc/omp-grid.c
@@ -745,9 +745,10 @@ grid_target_follows_gridifiable_pattern (gomp_target *target, grid_prop *grid)
tree group_size = NULL;
if (!teams)
{
- dump_printf_loc (MSG_MISSED_OPTIMIZATION, tloc,
- GRID_MISSED_MSG_PREFIX "it does not have a sole teams "
- "construct in it.\n");
+ if (dump_enabled_p ())
+ dump_printf_loc (MSG_MISSED_OPTIMIZATION, tloc,
+ GRID_MISSED_MSG_PREFIX "it does not have a sole "
+ "teams construct in it.\n");
return false;
}
@@ -788,9 +789,10 @@ grid_target_follows_gridifiable_pattern (gomp_target *target, grid_prop *grid)
gomp_for *dist = dyn_cast <gomp_for *> (stmt);
if (!dist)
{
- dump_printf_loc (MSG_MISSED_OPTIMIZATION, tloc,
- GRID_MISSED_MSG_PREFIX "the teams construct does not "
- "have a single distribute construct in it.\n");
+ if (dump_enabled_p ())
+ dump_printf_loc (MSG_MISSED_OPTIMIZATION, tloc,
+ GRID_MISSED_MSG_PREFIX "the teams construct does not "
+ "have a single distribute construct in it.\n");
return false;
}