https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78646
--- Comment #10 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Author: wschmidt Date: Wed Dec 7 01:04:47 2016 New Revision: 243330 URL: https://gcc.gnu.org/viewcvs?rev=243330&root=gcc&view=rev Log: 2016-12-06 Bill Schmidt <wschm...@linux.vnet.ibm.com> Backport from mainline 2016-12-05 Bill Schmidt <wschm...@linux.vnet.ibm.com> Stefan Freudenberger <ste...@reservoir.com> PR tree-optimization/78646 * gimple-ssa-strength-reduction.c (replace_ref): The pointer addition used for the memory base expression should have the type of the candidate. Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/gimple-ssa-strength-reduction.c