http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52208

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |vmakarov at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-14 
13:15:24 UTC ---
On the testcase ira.c first adds a REG_EQUIV note for the MEM, because the
memory is not modified in the live range of the pseudo (which is just the two
insns).
With Jeff's change we end up with negative memory cost (-1000) compared to cost
of 0 for storing the pseudo in the EAX register and decide to put the pseudo
into memory (which certainly would be cheaper if the following addsi insn
accepted it as operand, but it doesn't).

Reply via email to