https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70048
Richard Henderson <rth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |rth at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |rth at gcc dot gnu.org --- Comment #6 from Richard Henderson <rth at gcc dot gnu.org> --- Created attachment 37886 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37886&action=edit proposed patch I agree -- at minimum virtual and eliminable frame registers ought to be special-cased. If we separate the constants too far, we'll never be able to fold the constant plus the adjustment back together. If the statement in #c4 is taken at face value -- that r233136 was applied to simplify frame-based array accesses... Well, I simply don't believe that. I can see how the patch would aid reduction of access to members of a structure that are in an array which in turn is *not* on the stack. But for the average stack-based access I can't see except that it would hurt.