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

Re: [PATCH] Fix PR37053: Move tweaks of commutative precedence to target hook


On Sat, 2009-06-27 at 16:33 +0200, Paolo Bonzini wrote:
> and then in a machine-dependent reorg pass (which rs6000 currently does 
> not have):
> 
> FOR_EACH_BB (bb)
>    FOR_BB_INSNS (bb, insn)
>      if (INSN_P (insn))
>        for_each_rtx (&PATTERN (insn), find_mems_and_frob_them, NULL);

Originally, we tried just checking the REG_POINTER attribute when we
generated the asm for loads and stores, but there were so many passes
that didn't preserve the REG_POINTER/MEM_POINTER attribute, it just
didn't work.  We have since fixed a few of them, so hopefully at reorg
time, they're still there.  I'll have a go with your suggestion and get
back to you.  Thanks.


Peter




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