This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Extend CSE to track const anchors
- From: Adam Nemet <anemet at caviumnetworks dot com>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 3 Mar 2009 11:35:21 -0800
- Subject: Re: [RFC] Extend CSE to track const anchors
- References: <18861.26775.138460.257130@ropi.home> <49AD6FBD.2030109@gnu.org>
Paolo Bonzini writes:
> I like the patch. But
>
> > +#define TARGET_CONST_ANCHOR 0x8000
>
> this should be a target hook and the entire code should be disabled if
> it is not defined by the target.
Thanks. Sure, that's just a hack until I think about how to expose this to
the backends. Some of this may be derived from GO_IF_LEGITIMATE_ADDRESS, etc.
Adam