"Ling-hua Tseng" <[EMAIL PROTECTED]> writes:

> Because I need to use the feature of `length' attribute (i.e., use 
> get_attr_length() in machine description),
> I have to insert NOPs explicitly before performing the pass 58
> (shorten) such that the shorten pass can calculate the length of insns
> exactly.
> Can I direct move the reorg pass to the under of shorten pass by modifying 
> the passes.c?

One typical trick is to insert the nops in
TARGET_ASM_FUNCTION_PROLOGUE, and then call
  insn_insn_lengths ();
  shorten_branches (get_insns ());
to recompute everything.

Yes, it's ugly.

Ian

Reply via email to