This is the mail archive of the gcc@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]

A question about arg pointer elimination


Hi,

I have a question about arg pointer elimination.  Let's say we have
three elimination rules defined in ELIMINABLE_REGS:

  ARG_POINTER   -> STACK_POINTER
  ARG_POINTER   -> FRAME_POINTER
  FRAME_POINTER -> STACK_POINTER

When -fomit-frame-pointer is on, does the following (cascading)
elimination happen?

  ARG_POINTER -> FRAME_POINTER -> STACK_POINTER

Or is it always the case that the elimination is direct like the
following?

  ARG_POINTER -> STACK_POINTER

Thanks,

Kazu Hirata


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