aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-09-18 11:34:31 +0200
committerRichard Biener <rguenther@suse.de>2020-09-18 11:37:00 +0200
commit3ea069da14c5f6276ae26d2109e9ae0765c09199 (patch)
tree21e7545f32aea2208b9922103bd92c62d4a2170d /gcc/tree-vect-loop.c
parent0f6150a5d368fc30540dac31e29f1d6d40f207d3 (diff)
downloadgcc-3ea069da14c5f6276ae26d2109e9ae0765c09199.zip
gcc-3ea069da14c5f6276ae26d2109e9ae0765c09199.tar.gz
gcc-3ea069da14c5f6276ae26d2109e9ae0765c09199.tar.bz2
tree-optimization/97095 - fix typo in vectorizable_live_operation
This fixes a typo introduced with the last change and not noticed because those vectorizer access macros are not type safe ... 2020-09-18 Richard Biener <rguenther@suse.de> PR tree-optimization/97095 * tree-vect-loop.c (vectorizable_live_operation): Get the SLP vector type from the correct object. * gfortran.dg/pr97095.f: New testcase.
Diffstat (limited to 'gcc/tree-vect-loop.c')
-rw-r--r--gcc/tree-vect-loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 3021be3..b1a6e15 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -8045,7 +8045,7 @@ vectorizable_live_operation (vec_info *vinfo,
imm_use_iterator imm_iter;
tree lhs, lhs_type, bitsize, vec_bitsize;
tree vectype = (slp_node
- ? SLP_TREE_VECTYPE (SLP_TREE_REPRESENTATIVE (slp_node))
+ ? SLP_TREE_VECTYPE (slp_node)
: STMT_VINFO_VECTYPE (stmt_info));
poly_uint64 nunits = TYPE_VECTOR_SUBPARTS (vectype);
int ncopies;