]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert "tree-optimization/121059 - record loop mask when required"
authorRichard Biener <rguenther@suse.de>
Mon, 14 Jul 2025 15:18:04 +0000 (17:18 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 14 Jul 2025 15:18:12 +0000 (17:18 +0200)
This reverts commit 66346b6d800fc4baae876e0fe4e932401bcc85fa.

gcc/testsuite/gcc.dg/vect/pr121059.c [deleted file]
gcc/tree-vect-stmts.cc

diff --git a/gcc/testsuite/gcc.dg/vect/pr121059.c b/gcc/testsuite/gcc.dg/vect/pr121059.c
deleted file mode 100644 (file)
index 2bbfcea..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/* { dg-do compile } */
-/* { dg-additional-options "-O3 --param vect-partial-vector-usage=1" } */
-/* { dg-additional-options "-march=x86-64-v4" { target avx512f } } */
-
-typedef struct {
-  long left, right, top, bottom;
-} MngBox;
-typedef struct {
-  MngBox object_clip[6];
-  char exists[256], frozen[];
-} MngReadInfo;
-MngReadInfo mng_info;
-
-long ReadMNGImage_i;
-
-void ReadMNGImage(int ReadMNGImage_i)
-{
-  for (; ReadMNGImage_i < 256; ReadMNGImage_i++)
-    if (mng_info.exists[ReadMNGImage_i] && mng_info.frozen[ReadMNGImage_i])
-      mng_info.object_clip[ReadMNGImage_i].left =
-          mng_info.object_clip[ReadMNGImage_i].right =
-              mng_info.object_clip[ReadMNGImage_i].top =
-                  mng_info.object_clip[ReadMNGImage_i].bottom = 0;
-}
index f0dc4843ca78247dad8958ab099b9615b7a2c08f..4aa69da2218be2515c079b2453c7450cbfae1bcc 100644 (file)
@@ -6978,16 +6978,6 @@ vectorizable_operation (vec_info *vinfo,
              LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P (loop_vinfo) = false;
            }
        }
-      else if (loop_vinfo
-              && LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P (loop_vinfo)
-              && code == BIT_AND_EXPR
-              && VECTOR_BOOLEAN_TYPE_P (vectype)
-              /* We cannot always record a mask since that will disable
-                 len-based partial vectors, but there should be already
-                 one mask producer stmt which should require loop
-                 masking.  */
-              && !masks->is_empty ())
-       vect_record_loop_mask (loop_vinfo, masks, vec_num, vectype, NULL);
 
       /* Put types on constant and invariant SLP children.  */
       if (!vect_maybe_update_slp_op_vectype (slp_op0, vectype)