[Bug fortran/52473] CSHIFT slow - inline it?

jvdelisle at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 9 03:46:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52473

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jvdelisle at gcc dot gnu.org

--- Comment #7 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
(In reply to Thomas Koenig from comment #6)
> Created attachment 41508 [details]
> What an unrolled cshift could look like
> 
> This is what an unrolled version of cshift could look like,
> for a simple one-dimensional case.
> 
> If the shifts are constants, all the if statements are
> optimized away at compile-time, so it is quite efficient.

How often or how important is this feature? Would it improve any known
benchmark or real world application in a significant manner?


More information about the Gcc-bugs mailing list