loop hoisting fails

Ian Lance Taylor iant@google.com
Wed Feb 9 15:07:00 GMT 2011


"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



More information about the Gcc mailing list