[OpenACC privatization] Skip processing if no work to be done [PR90115]
gcc/ PR middle-end/90115 * omp-offload.c (execute_oacc_device_lower): Skip processing if no work to be done.
This commit is contained in:
parent
21803fcaeb
commit
ad4612cb04
1 changed files with 2 additions and 1 deletions
|
@ -2246,7 +2246,8 @@ execute_oacc_device_lower ()
|
|||
COMPONENT_REFS, ARRAY_REFS and plain VAR_DECLs are also rewritten to use
|
||||
the new decl, adjusting types of appropriate tree nodes as necessary. */
|
||||
|
||||
if (targetm.goacc.adjust_private_decl)
|
||||
if (targetm.goacc.adjust_private_decl
|
||||
&& !adjusted_vars.is_empty ())
|
||||
{
|
||||
FOR_ALL_BB_FN (bb, cfun)
|
||||
for (gimple_stmt_iterator gsi = gsi_start_bb (bb);
|
||||
|
|
Loading…
Add table
Reference in a new issue