summaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authoraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-30 21:25:29 +0000
committeraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-30 21:25:29 +0000
commita8a727ad2906469fcdc91382dcad1426499797be (patch)
tree7d30b2fde4a0cf5ac3d5774d1ff65ab67f3ba134 /gcc/combine.c
parente880695cc6c65706bfee51b184444826a6a1e179 (diff)
downloadgcc-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/combine.c')
-rw-r--r--gcc/combine.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index e47cbc4552b..4a92f55c8a0 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -11194,10 +11194,8 @@ gen_lowpart_for_combine (machine_mode omode, rtx x)
include an explicit SUBREG or we may simplify it further in combine. */
else
{
- int offset = 0;
rtx res;
- offset = subreg_lowpart_offset (omode, imode);
if (imode == VOIDmode)
{
imode = int_mode_for_mode (omode);
@@ -11205,7 +11203,7 @@ gen_lowpart_for_combine (machine_mode omode, rtx x)
if (x == NULL)
goto fail;
}
- res = simplify_gen_subreg (omode, x, imode, offset);
+ res = lowpart_subreg (omode, x, imode);
if (res)
return res;
}