[Bug tree-optimization/104497] [11/12 Regression] Invalid gimple produced for (A?vect:vect)[i]
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 11 10:15:24 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104497
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Interestingly the C++ frontend handles the COND_EXPR like
(void) (VIEW_CONVERT_EXPR<int[4]>(y)[i] = (i & 1) != 0 ?
VIEW_CONVERT_EXPR<int[4]>(inv)[i] : VIEW_CONVERT_EXPR<int[4]>(src)[i]) >>>>>;
avoiding this issue.
More information about the Gcc-bugs
mailing list