[gcc(refs/users/aoliva/heads/testme)] disable ldist for test, to restore vectorizing-candidate loop

Alexandre Oliva aoliva@gcc.gnu.org
Fri Mar 24 06:24:26 GMT 2023


https://gcc.gnu.org/g:5865336c2587de52565350175c19b2a36f31a86e

commit 5865336c2587de52565350175c19b2a36f31a86e
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Thu Mar 23 00:44:22 2023 -0300

    disable ldist for test, to restore vectorizing-candidate loop
    
    The loop we're supposed to try to vectorize in
    gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c is turned into a memset
    before the vectorizer runs.
    
    Various other tests in this set have already run into this, and the
    solution has been to disable this loop distribution transformation,
    enabled at -O2, so that the vectorizer gets a chance to transform the
    loop and, in this testcase, fail to do so.
    
    
    for  gcc/testsuite/ChangeLog
    
            * gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c: Disable
            ldist.

Diff:
---
 gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c
index c57f065cccd..bb206ffd972 100644
--- a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c
+++ b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target vect_int } */
+/* { dg-additional-options "-fno-tree-loop-distribute-patterns" } */
 
 #include <stdarg.h>
 #include "../../tree-vect.h"


More information about the Gcc-cvs mailing list