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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #0)
> Likewise
> &TARGET_MEM_REF[ptr_1 + 4] should be canonicalized to &MEM_REF[ptr_1 + 4]
> or even a POINTER_PLUS_EXPR.

We now canonicalized &MEM_REF[ptr_1 + 4] in gimple-fold to a POINTER_PLUS_EXPR.
I didn't handle &TARGET_MEM_REF though.

Reply via email to