https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113091

--- Comment #6 from Feng Xue <fxue at os dot amperecomputing.com> ---
(In reply to Richard Sandiford from comment #5)
> > The issue here is that because the "outer" pattern consumes
> > patt_64 = (int) patt_63 it should have adjusted _2 = (int) _1 
> > stmt-to-vectorize
> > as being the outer pattern root stmt for all this logic to work correctly.
> 
> I don't think it can though, at least not in general.  The final pattern
> stmt has to compute the same value as the original scalar stmt.

Could current pattern replacement support N:1 mapping (N stmts -> 1 pattern)?
If not, probably this handing would break related code somewhere.

Reply via email to