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