re PR tree-optimization/78646 (incorrect result type for pointer addition in slsr)
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 5 Dec 2016 21:48:27 +0000 (21:48 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Mon, 5 Dec 2016 21:48:27 +0000 (21:48 +0000)
commit8907a722fdfbe6992b4c5ee7ee5fa939213154af
tree0a5f62e2cc37663d0612d60f94a404ce5ea2ff31
parente3cc0f6bb67b012c26d3e7a5e2e76a90456c4d16
re PR tree-optimization/78646 (incorrect result type for pointer addition in slsr)

2016-12-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Stefan Freudenberger  <stefan@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.

Co-Authored-By: Stefan Freudenberger <stefan@reservoir.com>
From-SVN: r243272
gcc/ChangeLog
gcc/gimple-ssa-strength-reduction.c