This makes us also use --param vect-force-slp=1 in addition to
-flto where LTO is supported.  Note this only covers the subset
of tests not in one of the special naming-adds-option set.  Note
neither g++.dg nor gfortran.dg vect.exp has VECT_ADDITIONAL_FLAGS.

This is a request for comments - the test coverage from this isn't
too big (it'll also trigger the CI)

        * gcc.dg/vect/vect.exp (VECT_ADDITIONAL_FLAGS): Add
        --param vect-force-slp=1.
---
 gcc/testsuite/gcc.dg/vect/vect.exp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vect/vect.exp 
b/gcc/testsuite/gcc.dg/vect/vect.exp
index 54640d845a8..89699c12aef 100644
--- a/gcc/testsuite/gcc.dg/vect/vect.exp
+++ b/gcc/testsuite/gcc.dg/vect/vect.exp
@@ -83,7 +83,7 @@ lappend DEFAULT_VECTCFLAGS "-fdump-tree-vect-details"
 lappend VECT_SLP_CFLAGS "-fdump-tree-slp-details"
 
 # Main loop.
-set VECT_ADDITIONAL_FLAGS [list ""]
+set VECT_ADDITIONAL_FLAGS [list "--param=vect-force-slp=1"]
 if { [check_effective_target_lto] } {
     lappend VECT_ADDITIONAL_FLAGS "-flto -ffat-lto-objects"
 }
-- 
2.43.0

Reply via email to