[Bug tree-optimization/102435] gcc 9: aarch64 -ftree-loop-vectorize results in wrong code

2024-02-29 Thread dimitry--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102435

--- Comment #3 from Dimitry Andric  ---
Note, in the mean time Ubuntu updated their default gcc version for Ubuntu
20.04 to 9.4.0:

https://packages.ubuntu.com/focal-updates/devel/gcc-9

so this issue won't be encountered there anymore. Thanks.

[Bug tree-optimization/102435] gcc 9: aarch64 -ftree-loop-vectorize results in wrong code

2024-02-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102435

Andrew Pinski  changed:

   What|Removed |Added

Version|9.4.1   |9.3.0
   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=97236
 Status|UNCONFIRMED |RESOLVED
   Target Milestone|--- |9.4
 Resolution|--- |FIXED

--- Comment #2 from Andrew Pinski  ---
So this looks like another testcase for PR 97236 .


  duration = static_cast(first[1].dts_ - first->dts_);

  first->duration_ = duration;

is getting incorrectly vectorized even though dts_ is only used here and not
the rest.

So closing as fixed.

[Bug tree-optimization/102435] gcc 9: aarch64 -ftree-loop-vectorize results in wrong code

2024-02-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102435

Andrew Pinski  changed:

   What|Removed |Added

  Known to fail|9.4.1   |9.3.0
  Known to work||8.5.0, 9.4.0, 9.5.0

--- Comment #1 from Andrew Pinski  ---
So I can reproduce it with GCC 9.3.0 but not with GCC 9.4.0. It also works with
GCC 9.5.0