diff mbox series

Testing: fail vectorization when not using SLP

Message ID 20240908092413.36EBA13ADE@imap1.dmz-prg2.suse.org
State New
Headers show
Series Testing: fail vectorization when not using SLP | expand

Commit Message

Richard Biener Sept. 8, 2024, 9:24 a.m. UTC
While I know the effect on x86-64 the following patch post is to trigger
CI for disabling non-SLP vectorization to look for arm/aarch64 and
risc-v specific failure modes.

	* tree-vect-stmts.cc (vect_analyze_stmt): Fail vectorization
	for non-SLP stmts.
---
 gcc/tree-vect-stmts.cc | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index f6c5b7a7e87..cfb1066fc96 100644
--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -13351,6 +13351,10 @@  vect_analyze_stmt (vec_info *vinfo,
       return opt_result::success ();
     }
 
+  if (!node)
+    return opt_result::failure_at (stmt_info->stmt,
+				   "needs non-SLP handling\n");
+
   ok = true;
   if (!bb_vinfo
       && (STMT_VINFO_RELEVANT_P (stmt_info)