aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-09-06 12:55:13 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-09-06 12:55:13 +0000
commit1ffbb0160d3c895133ef3104ccd5e25d477e48ba (patch)
treeabc16449a7c44f470260590152dd36a1f813db43 /gcc
parent796bd467fd9b9b60eaafbc6b837466034305b504 (diff)
downloadgcc-1ffbb0160d3c895133ef3104ccd5e25d477e48ba.zip
gcc-1ffbb0160d3c895133ef3104ccd5e25d477e48ba.tar.gz
gcc-1ffbb0160d3c895133ef3104ccd5e25d477e48ba.tar.bz2
2017-09-06 Richard Biener <rguenther@suse.de>
* gimple-ssa-strength-reduction.c (find_candidates_dom_walker::before_dom_children): Also allow pointer types. From-SVN: r251791
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gimple-ssa-strength-reduction.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 97ed8d3..eba2c68 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2017-09-06 Richard Biener <rguenther@suse.de>
+ * gimple-ssa-strength-reduction.c
+ (find_candidates_dom_walker::before_dom_children): Also allow
+ pointer types.
+
+2017-09-06 Richard Biener <rguenther@suse.de>
+
PR tree-optimization/82108
* tree-vect-stmts.c (vectorizable_load): Fix pointer adjustment
for gap in the non-permutation SLP case.
diff --git a/gcc/gimple-ssa-strength-reduction.c b/gcc/gimple-ssa-strength-reduction.c
index 1c20825..b37ce35 100644
--- a/gcc/gimple-ssa-strength-reduction.c
+++ b/gcc/gimple-ssa-strength-reduction.c
@@ -1742,7 +1742,8 @@ find_candidates_dom_walker::before_dom_children (basic_block bb)
slsr_process_ref (gs);
else if (is_gimple_assign (gs)
- && INTEGRAL_TYPE_P (TREE_TYPE (gimple_assign_lhs (gs))))
+ && (INTEGRAL_TYPE_P (TREE_TYPE (gimple_assign_lhs (gs)))
+ || POINTER_TYPE_P (TREE_TYPE (gimple_assign_lhs (gs)))))
{
tree rhs1 = NULL_TREE, rhs2 = NULL_TREE;