[Bug tree-optimization/108320] Missing vector/array arithmetic optimization compared to valarray

2023-01-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108320

--- Comment #2 from Andrew Pinski  ---
valarray is specifically designed to allow these kind of optimizations really.

[Bug tree-optimization/108320] Missing vector/array arithmetic optimization compared to valarray

2023-01-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108320

--- Comment #1 from Andrew Pinski  ---
GCC does not implement loop fusion and you need loop fusion to handle fma2/fma3

[Bug tree-optimization/108320] Missing vector/array arithmetic optimization compared to valarray

2023-01-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108320

Andrew Pinski  changed:

   What|Removed |Added

  Component|c++ |tree-optimization
   Severity|normal  |enhancement
   Keywords||missed-optimization