[patch] Add support for #pragma GCC unroll
Eric Botcazou
ebotcazou@adacore.com
Tue Nov 21 10:40:00 GMT 2017
> The documentation for the directive is missing indeed. We can fix this
> during stage3.
Someone who speaks Fortran will have to write it down...
> Currently the directive works on the whole function (see
> gfc_cfun_has_unroll()) and instructs the loop-optimizers to run on
> that function.
gfc_cfun_has_unroll is superfluous and has already been dropped because the
flag will be set by the middle-end, but this doesn't change the behavior.
> The loop-optimizers will discover the ANNOTATE_EXPR and act accordingly.
> Richard B. already noted that the RTL unroller might do more than
> intended, see https://gcc.gnu.org/ml/gcc-patches/2017-11/msg01468.html
> I expect updates to the C and C++ in this area to be reflected to Fortran
> too.
Yes, it's a generic issue.
--
Eric Botcazou
More information about the Gcc-patches
mailing list