> I wonder if we can deal with this case during RTL expansion, basically > detect a concat permute and see if there's vec_init of vector components > supported and use that? The alternative to new patterns would be to > make vec_perm_const of the target emit a concat? > > Or did I misunderstand the issue?
Ugh, I had a follow-up for this sitting locally for almost half a year... I didn't find a good fix in expand and would always need to introduce new target patterns. So what I did is restrict the optimization to vectors with >= 2 lanes. The rest of the code is unchanged except for rebasing. Going to post it separately so Sashiko can pick it up (it doesn't scan threads yet AFAICT). Regards Robin
