[nvptx] Eliminate changed local var in nvptx_goacc_validate_dims
authorTom de Vries <tdevries@suse.de>
Thu, 3 Jan 2019 15:08:06 +0000 (15:08 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 3 Jan 2019 15:08:06 +0000 (15:08 +0000)
commit5f57c8f347352a8c9fd8cfbf253a545f272850d6
treeb5d8d9aae6325d56c3c3d2d910eef6e71f319cd3
parented72c2e3b39a30ece53f0896c594160c6aa53330
[nvptx] Eliminate changed local var in nvptx_goacc_validate_dims

The TARGET_GOACC_VALIDATE_DIMS hook requires an implementation to return a bool
indicating whether the dims parameter has changed.

Factor nvptx_goacc_validate_dims_1 out of nvptx_goacc_validate_dims, and
calculate the return value in nvptx_goacc_validate_dims.

2019-01-03  Tom de Vries  <tdevries@suse.de>

* config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
factored out of ...
(nvptx_goacc_validate_dims): ... here.

From-SVN: r267555
gcc/ChangeLog
gcc/config/nvptx/nvptx.c