[Bug fortran/88713] _gfortran_internal_pack@PLT prevents vectorization

2019-01-06 Thread elrodc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88713 --- Comment #10 from Chris Elrod --- (In reply to Thomas Koenig from comment #9) > Hm. > > It would help if your benchmark was complete, so I could run it. > I don't suppose you happen to have and be familiar with Julia? If you (or someone

[Bug fortran/88713] _gfortran_internal_pack@PLT prevents vectorization

2019-01-06 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88713 --- Comment #9 from Thomas Koenig --- Hm. It would help if your benchmark was complete, so I could run it. However, what happens if you put int real, dimension(:) :: Uix real, dimension(:), intent(in) :: x real,

[Bug fortran/88713] _gfortran_internal_pack@PLT prevents vectorization

2019-01-06 Thread elrodc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88713 --- Comment #8 from Chris Elrod --- Created attachment 45358 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45358=edit gfortran compiled assembly for the tranposed version of the original code. Here is the assembly for the loop body of

[Bug fortran/88713] _gfortran_internal_pack@PLT prevents vectorization

2019-01-06 Thread elrodc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88713 --- Comment #7 from Chris Elrod --- Created attachment 45357 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45357=edit Assembly generated by Flang compiler on the original version of the code. This is the main loop body in the Flang

[Bug fortran/88713] _gfortran_internal_pack@PLT prevents vectorization

2019-01-06 Thread elrodc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88713 --- Comment #6 from Chris Elrod --- Created attachment 45356 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45356=edit Code to demonstrate that transposing makes things slower. Thomas Koenig, I am well aware that Fortran is column major.

[Bug fortran/88713] _gfortran_internal_pack@PLT prevents vectorization

2019-01-06 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88713 Thomas Koenig changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug fortran/88713] _gfortran_internal_pack@PLT prevents vectorization

2019-01-06 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88713 Thomas Koenig changed: What|Removed |Added CC||tkoenig at gcc dot gnu.org

[Bug fortran/88713] _gfortran_internal_pack@PLT prevents vectorization

2019-01-05 Thread elrodc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88713 --- Comment #3 from Chris Elrod --- Created attachment 45353 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45353=edit g++ assembly output

[Bug fortran/88713] _gfortran_internal_pack@PLT prevents vectorization

2019-01-05 Thread elrodc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88713 --- Comment #2 from Chris Elrod --- Created attachment 45352 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45352=edit gfortran assembly output

[Bug fortran/88713] _gfortran_internal_pack@PLT prevents vectorization

2019-01-05 Thread elrodc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88713 --- Comment #1 from Chris Elrod --- Created attachment 45351 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45351=edit C++ version of the vectorization test case.