This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: loop hoisting fails
- From: Ian Lance Taylor <iant at google dot com>
- To: "Paulo J. Matos" <pocmatos at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 09 Feb 2011 07:07:37 -0800
- Subject: Re: loop hoisting fails
- References: <iiu0pq$ioe$1@dough.gmane.org>
"Paulo J. Matos" <pocmatos@gmail.com> writes:
> But then this is combined by cse into:
>
> (set (mem/s:QI (reg:QI 41)) (const_int 0))
>
> and bammm, same problem. No loop hoisting. What's the best way to
> handle this? Any suggestions?
You need to set TARGET_RTX_COSTS to indicate that this operation is
relatively expensive. That should stop combine from generating it.
Ian