https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94043
--- Comment #12 from Kewen Lin <linkw at gcc dot gnu.org> --- Created attachment 48122 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48122&action=edit ppc64le tested patch Thanks Richi! A patch draft attached to ensure on the right track, also bootstrapped/regresstested. I tried to reproduce the case that the stmts for lane extracting is empty (due to folding) with test cases associated in that old commit but failed. I think we don't need to deal with it? The new copy assignment instead of the phi could not be caught by the LC-PHI check in expand_simple_operations.