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]
Other format: [Raw text]

Re: [dataflow] PATCH removal of more of flow.c.


Kenneth Zadeck <zadeck@naturalbridge.com> writes:
> +              /* Do not make the log link for frame pointer.  */
> +              if ((regno == FRAME_POINTER_REGNUM
> +                   && (! reload_completed || frame_pointer_needed))
> +#if FRAME_POINTER_REGNUM != HARD_FRAME_POINTER_REGNUM
> +                  || (regno == HARD_FRAME_POINTER_REGNUM
> +                      && (! reload_completed || frame_pointer_needed))
> +#endif
> +#if FRAME_POINTER_REGNUM != ARG_POINTER_REGNUM
> +                  || (regno == ARG_POINTER_REGNUM && fixed_regs[regno])
> +#endif
> +                  )
> +                continue;

Minor niggle, sorry, but the comment doesn't really say what the code
is doing.  How about something like "Do not make log links for function-
invariant hard registers."?  I hope it's a bit more accurate, and it
makes it more obvious why we don't create the links.

Richard


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