This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using frame pointer + constant in reg_equiv_constant


> I disagree strongly because of how reg_equiv_constant entries can be
> substituted into insns without any checks as to the validity of the
> substitution.

But it is really an extension of register elimination: the constants are of
the form frame_pointer + CONST or arg_pointer + CONST, and this gets
transformed into stack_pointer + CONST or hard_frame_pointer + CONST
just like an eliminated frame or arg pointer.  The usual reloading
is done on the result, so any invalidity introduced by the substitution
gets fixed up.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]