public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-9382] vect-loop: fix build
@ 2021-12-14 12:49 Joel Hutton
0 siblings, 0 replies; only message in thread
From: Joel Hutton @ 2021-12-14 12:49 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9a5b3c50e26c24814ede693600fb24e4c7b6c60c
commit r11-9382-g9a5b3c50e26c24814ede693600fb24e4c7b6c60c
Author: Joel Hutton <joel.hutton@arm.com>
Date: Tue Dec 14 12:01:09 2021 +0000
vect-loop: fix build
Previous commit broke build as it relied on directly_supported_p which
is not in 11. This reworks to avoid using directly_supported_p.
gcc/ChangeLog:
PR bootstrap/103688
* tree-vect-loop.c (vectorizable_induction): Rework to avoid
directly_supported_p.
Diff:
---
gcc/tree-vect-loop.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c
index 54320681119..b77b4f7f83f 100644
--- a/gcc/tree-vect-loop.c
+++ b/gcc/tree-vect-loop.c
@@ -7997,8 +7997,8 @@ vectorizable_induction (loop_vec_info loop_vinfo,
tree step_vectype = get_same_sized_vectype (TREE_TYPE (step_expr), vectype);
/* Check for backend support of PLUS/MINUS_EXPR. */
- if (!directly_supported_p (PLUS_EXPR, step_vectype)
- || !directly_supported_p (MINUS_EXPR, step_vectype))
+ if (!target_supports_op_p (step_vectype, PLUS_EXPR, optab_default)
+ || !target_supports_op_p (step_vectype, MINUS_EXPR, optab_default))
return false;
if (!vec_stmt) /* transformation not required. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-14 12:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-14 12:49 [gcc r11-9382] vect-loop: fix build Joel Hutton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).