"Paulo J. Matos" <pocma...@gmail.com> writes: > On 10/02/11 16:04, Ian Lance Taylor wrote: >> Bother. I've encountered that problem before and I think I used a >> sledgehammer (a local patch). It's definitely a bug that gcse doesn't >> consider costs. >> > > I think I might try also patching my local gcc. I guess the trick is > to check for the cost of the alternative before making the replacement > in gcse, right? Is it possible to have an idea of how you did it?
My case was somewhat different. I think I just patched gcse_constant_p. Ian