[Bug fortran/115563] Unnecessary brackets prevent fortran vectorisation

2024-06-24 Thread mjr19 at cam dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115563 --- Comment #6 from mjr19 at cam dot ac.uk --- A further comment to aid others reading this report. It is not just unnecessary brackets which used to prevent vectorisation, but also necessary ones. subroutine foo(a,b,c,n) complex (kind(1d0)) :

[Bug fortran/115563] Unnecessary brackets prevent fortran vectorisation

2024-06-21 Thread mjr19 at cam dot ac.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115563 --- Comment #5 from mjr19 at cam dot ac.uk --- I'm glad this was useful, and thanks for the impressively rapid fix. I stumbled across this by chance whilst trying to construct a minimal example for a rather different missed vectorisation case.

[Bug fortran/115563] Unnecessary brackets prevent fortran vectorisation

2024-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115563 --- Comment #4 from Andrew Pinski --- Note I have a fix for this which I attached to PR 68855 and will be submitting it after the bootstrap/test finishes. Thanks again for the testcase and the decent bug report. It definitely was useful.

[Bug fortran/115563] Unnecessary brackets prevent fortran vectorisation

2024-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115563 --- Comment #3 from Andrew Pinski --- Note the full IR: _9 = COMPLEX_EXPR <_15, _14>; _11 = ((_9)); _19 = REALPART_EXPR <_11>; _20 = IMAGPART_EXPR <_11>; REALPART_EXPR <(*a_7(D))[_6]> = _19; IMAGPART_EXPR <(*a_7(D))[_6]> = _20; Yes

[Bug fortran/115563] Unnecessary brackets prevent fortran vectorisation

2024-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115563 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug fortran/115563] Unnecessary brackets prevent fortran vectorisation

2024-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115563 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment