https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106912
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Status|NEW |ASSIGNED Priority|P3 |P1 Target Milestone|--- |13.0 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed, we have # .MEM = VDEF <.MEM> vect__5.57_58 = foo.simdclone.0 (vect__4.56_57); here. IIRC I filed a bugreport about simdclones not being const when the scalar version is, in this case it's possibly IPA pure const not updating the clones before materializing them!? That said, the not vectorized variant is just _5 = foo (_4); and without -fprofile-generate the vectorized variant also keeps 'const'. I will look at this again after Cauldron. Have to dig to where the simdclone is actually generated.