Move insn out of the way
Paulo J. Matos
paulo@matos-sorge.com
Wed Aug 10 13:55:00 GMT 2011
On 10/08/11 12:42, Richard Guenther wrote:
>
> Oh, and I wonder if/why IRA can/does not rematerialize the constant
> instead of spilling it. Might be a cost issue that it doesn't delay
> allocating a reg for 1 as that is cheap to reload (is it?).
>
I would indeed expect IRA to move the constant assignment. However it
doesn't. The cost of a constant as per RTX_COSTS is 1 since it takes
exactly one instruction to actually do that (optimizing for size).
--
PMatos
More information about the Gcc
mailing list