invalidate_mems_from_autoinc

Zdenek Dvorak rakdver@atrey.karlin.mff.cuni.cz
Tue Dec 3 01:52:00 GMT 2002


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



More information about the Gcc mailing list