https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104307
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 52320 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52320&action=edit gcc12-pr104307.patch Untested fix. Just the first part of the hunk is needed for this bug, I'm actually not 100% sure about the rhs2/rhs3 case, but it feels it isn't right (it would e.g. try to expand_vector_condition the same stmt multiple times). I must say I don't understand the pushing of all uses into a vector, wouldn't it make more sense to push there just the VEC_COND_EXPRs with such lhs? Then we e.g. wouldn't need to do any expand_vector_condition calls if we have 1000 VEC_COND_EXPR uses and then a different use.