From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DDA5F386D62C; Thu, 15 Feb 2024 21:05:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DDA5F386D62C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708031143; bh=kKZB8Szp0Pvr2Tk77JJRZo0Q5Wpcq0axKGuxEPcpI2w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QNpseK6BKhlS1lHnyA9LcXv2JxoUxTvJcfmvypgC/VZIGXZk1EB6ubo5s1V5Linc2 lrcFa1Sc3hNZ5OPL3NTehNuiyvjAZfwbIoXYKd8K0Z6Zmv0Js3sJ+CO0i92JzaIs8V bmcECDvIXN9q9zJQqD3SYYlCP3+oIZd4MBd7Ptos= From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111156] [14 Regression] aarch64 aarch64/sve/mask_struct_store_4.c failures Date: Thu, 15 Feb 2024 21:05:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: testsuite-fail, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111156 --- Comment #22 from rguenther at suse dot de --- > Am 15.02.2024 um 19:53 schrieb tnfchris at gcc dot gnu.org : >=20 > =EF=BB=BFhttps://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111156 >=20 > --- Comment #21 from Tamar Christina --- > (In reply to Richard Biener from comment #18) >> diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc >> index 7cf9504398c..8deeecfd4aa 100644 >> --- a/gcc/tree-vect-slp.cc >> +++ b/gcc/tree-vect-slp.cc >> @@ -1280,8 +1280,11 @@ vect_build_slp_tree_1 (vec_info *vinfo, unsigned = char >> *swap, >> && rhs_code.is_tree_code () >> && (TREE_CODE_CLASS (tree_code (first_stmt_code)) >> =3D=3D tcc_comparison) >> - && (swap_tree_comparison (tree_code (first_stmt_code= )) >> - =3D=3D tree_code (rhs_code))) >> + && ((swap_tree_comparison (tree_code (first_stmt_cod= e)) >> + =3D=3D tree_code (rhs_code)) >> + || ((TREE_CODE_CLASS (tree_code (alt_stmt_code)) >> + =3D=3D tcc_comparison) >> + && rhs_code =3D=3D alt_stmt_code))) >> && !(STMT_VINFO_GROUPED_ACCESS (stmt_info) >> && (first_stmt_code =3D=3D ARRAY_REF >> || first_stmt_code =3D=3D BIT_FIELD_REF >>=20 >> should get you SLP but: >>=20 >> t.c:8:26: note: =3D=3D=3D vect_slp_analyze_operations =3D=3D=3D >> t.c:8:26: note: =3D=3D> examining statement: pretmp_29 =3D *_28; >> t.c:8:26: missed: unsupported load permutation >> t.c:10:30: missed: not vectorized: relevant stmt not supported: pretmp= _29 >> =3D *_28; >>=20 >> t.c:8:26: note: op template: pretmp_29 =3D *_28; >> t.c:8:26: note: stmt 0 pretmp_29 =3D *_28; >> t.c:8:26: note: stmt 1 pretmp_29 =3D *_28; >> t.c:8:26: note: load permutation { 0 0 } >=20 > hmm with that applied I get: >=20 > sve-mis.c:8:26: note: =3D=3D> examining statement: pretmp_29 =3D *_28; > sve-mis.c:8:26: note: Vectorizing an unaligned access. > sve-mis.c:8:26: note: vect_model_load_cost: unaligned supported by hard= ware. > sve-mis.c:8:26: note: vect_model_load_cost: inside_cost =3D 1, prologue= _cost =3D > 0 . >=20 > but it bails out at: >=20 > sve-mis.c:8:26: missed: Not using elementwise accesses due to variable > vectorization factor. > sve-mis.c:10:25: missed: not vectorized: relevant stmt not supported: > .MASK_STORE (_5, 8B, _27, pretmp_29); > sve-mis.c:8:26: missed: bad operation or unsupported loop bound. >=20 > for me I=E2=80=99ve used -fno-cost-model and looked at the SVE variant only. > -- > You are receiving this mail because: > You are the assignee for the bug. > You are on the CC list for the bug.=