https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80297
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- We can experiment with adding unshare_exprs to genmatch and see in how many patterns that triggers. But as said, the general issue looks latent to me. Folding during gimplification is dangerous.