This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: hoist more loop invariants
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Dale Johannesen <dalej at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 31 Mar 2003 17:45:52 +0200
- Subject: Re: Patch: hoist more loop invariants
- References: <58F875B2-49F3-11D7-84F9-000393D76DAA@apple.com>
> The obvious cases to exclude are when Invariant is a register or
> LEGITIMATE_CONSTANT_P, and I've done that; there are certainly others,
> but they're target-dependent and I don't see a good abstraction.
Yes, for example on Sparc where there is no movcc pattern so gcc now emits
invalid CCmode->CCmode moves.
I suppose you're not interested in disabling entirely the optimization for
CCmode? If so, what do you think about using can_copy_p from gcse.c?
--
Eric Botcazou