diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-07 20:57:56 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-07 20:57:56 +0000 |
commit | aba55a9cca545ca1b71b3e95fe8050006fecff9e (patch) | |
tree | 309479ef2989d5bd7265c47973b72819770ac7d2 /gcc/var-tracking.c | |
parent | 8c753480c7a1e3e9629d31a01e4f64e4c79cc7b5 (diff) | |
download | gcc-aba55a9cca545ca1b71b3e95fe8050006fecff9e.tar.gz |
* var-tracking.c (var_lowpart): Exit early for matched modes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190212 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/var-tracking.c')
-rw-r--r-- | gcc/var-tracking.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index 7aef8ea39bf..a79872f1949 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -5086,12 +5086,12 @@ var_lowpart (enum machine_mode mode, rtx loc) { unsigned int offset, reg_offset, regno; - if (!REG_P (loc) && !MEM_P (loc)) - return NULL; - if (GET_MODE (loc) == mode) return loc; + if (!REG_P (loc) && !MEM_P (loc)) + return NULL; + offset = byte_lowpart_offset (mode, GET_MODE (loc)); if (MEM_P (loc)) |