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]

invalidate_mems_from_autoinc


Hello,

I am currently working on cleaning up flow.c (splitting out log links
creation, pre/post modify transformation and other not stuff not
strictly related with liveness analysis). The code is kind of magic on
some places, so I will probably have a lot of questions during the time.
For now:

invalidate_mems_from_autoinc is used in this manner in mark_set_1 and
mark_used_regs:

if (insn && GET_CODE (reg) == MEM)
  for_each_rtx (&PATTERN (insn), invalidate_mems_from_autoinc, pbi);

Is there some reason for passing through the whole insn for every MEM I
encounter? Would not either one call at top level, or (a bit better for
my purposes)

if (GET_CODE (reg) == MEM)
  for_each_rtx (&reg, invalidate_mems_from_autoinc, pbi);

suffice?

Zdenek


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