re PR rtl-optimization/37273 (IRA does not re-materializes addresses (loads from...
authorJeff Law <law@redhat.com>
Thu, 17 Mar 2011 20:08:01 +0000 (14:08 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 17 Mar 2011 20:08:01 +0000 (14:08 -0600)
commit82ce305c0ce60d86928e6d2c7451d0401a446a78
tree7e9474f74a35ea5586f2698171cdcd9058633f03
parent3ade8456a1d97911730cd904a6c1b5e64993ee55
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: r171111
gcc/ChangeLog
gcc/ira-costs.c