* lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg
rather than gen_rtx_SUBREG.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192988
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-10-30 Richard Sandiford <r.sandiford@uk.ibm.com>
+
+ * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg
+ rather than gen_rtx_SUBREG.
+
2012-10-30 Richard Biener <rguenther@suse.de>
* gimple.h (gimple_store_p): New predicate.
return x;
}
else
- return gen_rtx_SUBREG (GET_MODE (x), new_rtx, SUBREG_BYTE (x));
+ return simplify_gen_subreg (GET_MODE (x), new_rtx,
+ GET_MODE (new_rtx), SUBREG_BYTE (x));
}
return x;