var-tracking.c (var_lowpart): Exit early for matched modes.

* var-tracking.c (var_lowpart): Exit early for matched modes.

From-SVN: r190212
This commit is contained in:
Uros Bizjak 2012-08-07 22:57:56 +02:00 committed by Uros Bizjak
parent 78ce265b71
commit 1791f36f52
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2012-08-07 Uros Bizjak <ubizjak@gmail.com>
* var-tracking.c (var_lowpart): Exit early for matched modes.
2012-08-07 Richard Henderson <rth@redhat.com> 2012-08-07 Richard Henderson <rth@redhat.com>
* config/s390/s390.c (s390_emit_compare_and_swap): Update for * config/s390/s390.c (s390_emit_compare_and_swap): Update for
@ -2251,7 +2255,7 @@
2012-07-23 Uros Bizjak <ubizjak@gmail.com> 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386-protos.c (ix86_lea_outperforms): Remove prototype. * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
* config/i386/i386.c (ix86_lea_outperforms): Make static. Make * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
split_cost argument signed. split_cost argument signed.
(ix86_avoid_lea_for_add): Cleanup. (ix86_avoid_lea_for_add): Cleanup.

View File

@ -5086,12 +5086,12 @@ var_lowpart (enum machine_mode mode, rtx loc)
{ {
unsigned int offset, reg_offset, regno; unsigned int offset, reg_offset, regno;
if (!REG_P (loc) && !MEM_P (loc))
return NULL;
if (GET_MODE (loc) == mode) if (GET_MODE (loc) == mode)
return loc; return loc;
if (!REG_P (loc) && !MEM_P (loc))
return NULL;
offset = byte_lowpart_offset (mode, GET_MODE (loc)); offset = byte_lowpart_offset (mode, GET_MODE (loc));
if (MEM_P (loc)) if (MEM_P (loc))