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: RFC patch: invariant addresses too cheap


> which is sensible enough. ?But if an invariant is only used in places
> where it is "cheap", why aren't we allowing fwprop2 to propagate them?
> I.e. why don't we let loop-invariant.c act as normal and relax the
> fwprop2 condition:
>
> ?/* Do not propagate loop invariant definitions inside the loop. ?*/
> ?if (DF_REF_BB (def)->loop_father != DF_REF_BB (use)->loop_father)
> ? ?return;
>
> in cases where we think propagating an invariant address is "cheap"?
> This feels like a more general fix, since it would also cope with
> hoisting done at the tree level or by GCSE.

This makes sense.  However it is tricky because of PR30907 which
we don't want to pessimize.  Basically the only way to validate these
patches would be to run nullstone. :-(

Paolo


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