re PR rtl-optimization/37273 (IRA does not re-materializes addresses (loads from...
authorJeff Law <law@redhat.com>
Tue, 25 Jan 2011 14:10:46 +0000 (07:10 -0700)
committerJeff Law <law@gcc.gnu.org>
Tue, 25 Jan 2011 14:10:46 +0000 (07:10 -0700)
commit7e6cb0221424399d27a07d3dadd09ad6967e41cd
tree1f0c96fac3818cfb4a85ccde3cf27fb2245a19db
parent315d905fd552d1ace2196310e527407f9b5bdbd8
re PR rtl-optimization/37273 (IRA does not re-materializes addresses (loads from the TOC))

PR rtl-optimization/37273
* ira-costs.c (scan_one_insn): Detect constants living in memory and
handle them like argument loads from stack slots.  Do not double
count memory for memory constants and argument loads from stack slots.

From-SVN: r169231
gcc/ChangeLog
gcc/ira-costs.c