[Bug tree-optimization/102512] Redundant max/min operation before vector reduction

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 28 07:41:00 GMT 2021


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-09-28
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I wonder if the prologue for the second case we if we know the size was
originally greater than 4 just do an overlap load and do the max.
This won't fix the issue fully but it will produce better code than we
currently do.

Otherwise confirmed.


More information about the Gcc-bugs mailing list