Re: [PATCH] gimple-fold: Move optimizing memcpy to memset to fold_stmt from fab

2024-09-09 Thread Richard Biener
On Sat, Sep 7, 2024 at 1:31 AM Andrew Pinski wrote: > > I noticed this folding inside fab could be done else where and could > even improve inlining decisions and a few other things so let's > move it to fold_stmt. > It also fixes PR 116601 because places which call fold_stmt already > have to dea

[PATCH] gimple-fold: Move optimizing memcpy to memset to fold_stmt from fab

2024-09-06 Thread Andrew Pinski
I noticed this folding inside fab could be done else where and could even improve inlining decisions and a few other things so let's move it to fold_stmt. It also fixes PR 116601 because places which call fold_stmt already have to deal with the stmt becoming a non-throw statement. For the fix for