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]

Re: REG_EH_REGION notes and substitutions into insn


On Wed, Nov 07, 2001 at 08:25:07PM -0500, Richard Kenner wrote:
> The problem is that it's not just cse and combine.  It's gcse, perhaps
> local-alloc, perhaps loop, etc.  It's basically *anybody* who might
> optimize the insn.
> 
> There needs to be some central way of doing this.

Well, there's set_unique_reg_note, which is oft used to add the
REG_EQUAL note in the first place.  It could be modified to do
something like

  if ((kind == REG_EQUAL || kind == REG_EQUIV)
      && ! may_trap_p (datum))
    remove_note (find_reg_note (insn, REG_EH_REGION, NULL_RTX));


r~


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