[PATCH] match.pd: Use single_use for (T)(A) + CST -> (T)(A + CST) [PR95798]

Marc Glisse marc.glisse@inria.fr
Wed Feb 24 19:52:44 GMT 2021


On Wed, 24 Feb 2021, Jakub Jelinek via Gcc-patches wrote:

> The following patch adds single_use case which restores these testcases
> but keeps the testcases the patch meant to improve as is.

Hello,

I wonder if :s would be sufficient here? I don't have an opinion on which 
one is better for this particular transformation (don't change the patch 
because of my comment), we just seem to be getting more and more uses of 
single_use in match.pd, maybe at some point we need to revisit the meaning 
of :s or introduce a stronger :S.

-- 
Marc Glisse


More information about the Gcc-patches mailing list