This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: power4 branch hints
- From: Geoff Keating <geoffk at geoffk dot org>
- To: dje at watson dot ibm dot com
- Cc: amodra at bigpond dot net dot au, gcc-patches at gcc dot gnu dot org
- Date: Fri, 2 Aug 2002 13:25:16 -0700
- Subject: Re: power4 branch hints
- References: <200208020147.VAA27536@makai.watson.ibm.com>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> cc: gcc-patches@gcc.gnu.org
> Date: Thu, 01 Aug 2002 21:47:01 -0400
> From: David Edelsohn <dje@watson.ibm.com>
>
> + int cpu_version1_arch = rs6000_cpu < PROCESSOR_POWER4;
>
> I am extremely conflicted about having a fragile test like the one
> above versus
>
> int at_hints = (rs6000_cpu == PROCESSOR_POWER4)
>
> which adds yet another place potentially requiring tweaking for new
> processors.
>
> Geoff, do you have any preferences?
I think I slightly prefer the second, because the first one depends on
ordering of an enum.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>