aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-patterns.c
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2021-07-14 19:00:59 +0100
committerTamar Christina <tamar.christina@arm.com>2021-07-14 19:00:59 +0100
commit4940166a15193d6583b320f2957af8720745b76c (patch)
tree9019a215c14629546ebc3d4daf610baeda407287 /gcc/tree-vect-patterns.c
parent398572c1544d8b7541862401b985ae7e855cb8fb (diff)
downloadgcc-4940166a15193d6583b320f2957af8720745b76c.zip
gcc-4940166a15193d6583b320f2957af8720745b76c.tar.gz
gcc-4940166a15193d6583b320f2957af8720745b76c.tar.bz2
Vect: correct rebase issue
The lines being removed have been updated and merged into a new condition. But when resolving some conflicts I accidentally reintroduced them causing some test failes. This removes them. Committed as the changes were previously approved in https://gcc.gnu.org/pipermail/gcc-patches/2021-July/574977.html but the hunk was misapplied during a rebase. gcc/ChangeLog: * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Remove erroneous line. gcc/testsuite/ChangeLog: * gcc.dg/vect/vect-reduc-dot-11.c: Expect pass. * gcc.dg/vect/vect-reduc-dot-15.c: Likewise. * gcc.dg/vect/vect-reduc-dot-19.c: Likewise. * gcc.dg/vect/vect-reduc-dot-21.c: Likewise.
Diffstat (limited to 'gcc/tree-vect-patterns.c')
-rw-r--r--gcc/tree-vect-patterns.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c
index 71533e6..53ced5d 100644
--- a/gcc/tree-vect-patterns.c
+++ b/gcc/tree-vect-patterns.c
@@ -1039,12 +1039,6 @@ vect_recog_dot_prod_pattern (vec_info *vinfo,
: TYPE_SIGN (unprom_mult.type) != TYPE_SIGN (half_type)))
return NULL;
- /* If there are two widening operations, make sure they agree on
- the sign of the extension. */
- if (TYPE_PRECISION (unprom_mult.type) != TYPE_PRECISION (type)
- && TYPE_SIGN (unprom_mult.type) != TYPE_SIGN (half_type))
- return NULL;
-
vect_pattern_detected ("vect_recog_dot_prod_pattern", last_stmt);
tree half_vectype;