OSDN Git Service

Backport from mainline
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Aug 2012 16:28:42 +0000 (16:28 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Aug 2012 16:28:42 +0000 (16:28 +0000)
commit7a53ad16449a7d8bc22d757442aa8e98ed03a5c8
tree7e0297fc089e3573af8ae265400e377f239e2141
parent4d2ec1d2bceb986655ca6327ba4d5a27dd846245
Backport from mainline
2012-07-23  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
* config/i386/i386.c (ix86_lea_outperforms): Make static.  Make
split_cost argument signed.
(ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
(ix86_avoid_lea_for_addr): Ditto.

2012-07-27  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/i386.c (ix86_avoid_lea_for_addr): Return false if
the address has less than two components.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@190183 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386-protos.h
gcc/config/i386/i386.c