diff options
author | aesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-30 21:25:29 +0000 |
---|---|---|
committer | aesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-30 21:25:29 +0000 |
commit | a8a727ad2906469fcdc91382dcad1426499797be (patch) | |
tree | 7d30b2fde4a0cf5ac3d5774d1ff65ab67f3ba134 /gcc/emit-rtl.c | |
parent | e880695cc6c65706bfee51b184444826a6a1e179 (diff) | |
download | gcc-a8a727ad2906469fcdc91382dcad1426499797be.tar.gz |
Use lowpart_subreg instead of simplify_gen_subreg
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226417 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index caa33b81f62..d211e6b0ce5 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1377,7 +1377,6 @@ gen_lowpart_common (machine_mode mode, rtx x) { int msize = GET_MODE_SIZE (mode); int xsize; - int offset = 0; machine_mode innermode; /* Unfortunately, this routine doesn't take a parameter for the mode of X, @@ -1405,8 +1404,6 @@ gen_lowpart_common (machine_mode mode, rtx x) if (SCALAR_FLOAT_MODE_P (mode) && msize > xsize) return 0; - offset = subreg_lowpart_offset (mode, innermode); - if ((GET_CODE (x) == ZERO_EXTEND || GET_CODE (x) == SIGN_EXTEND) && (GET_MODE_CLASS (mode) == MODE_INT || GET_MODE_CLASS (mode) == MODE_PARTIAL_INT)) @@ -1429,7 +1426,7 @@ gen_lowpart_common (machine_mode mode, rtx x) else if (GET_CODE (x) == SUBREG || REG_P (x) || GET_CODE (x) == CONCAT || GET_CODE (x) == CONST_VECTOR || CONST_DOUBLE_AS_FLOAT_P (x) || CONST_SCALAR_INT_P (x)) - return simplify_gen_subreg (mode, x, innermode, offset); + return lowpart_subreg (mode, x, innermode); /* Otherwise, we can't do this. */ return 0; |