[Bug c++/101038] ice in vect_optimize_slp

2021-06-14 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101038

Martin Liška  changed:

   What|Removed |Added

 CC||marxin at gcc dot gnu.org

--- Comment #3 from Martin Liška  ---
Btw. fixed with r12-1387-gfbd8a8041292f2ec.

[Bug c++/101038] ice in vect_optimize_slp

2021-06-11 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101038

David Binderman  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from David Binderman  ---
Seems fixed overnite. This morning's gcc trunk build is happy with it.

[Bug c++/101038] ice in vect_optimize_slp

2021-06-11 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101038

--- Comment #1 from David Binderman  ---
Reduced C++ code is:

typedef char quint8;
typedef struct {
  quint8 green, blue;
} CharPixel;
CharPixel *equalize_equalize_map;
int equalize_i;
void equalize() {
  unsigned low_0, high_0, low_1, high_1;
  for (; equalize_i; ++equalize_i) {
equalize_equalize_map[equalize_i].green =
255 * (equalize_equalize_map[equalize_i].green - low_1) /
(high_1 - low_1);
equalize_equalize_map[equalize_i].blue =
255 * (equalize_equalize_map[equalize_i].blue - low_0) /
(high_0 - low_0);
  }
}

-march=bdver2 not needed, but -O3 is.