From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 83BDD3858C66; Mon, 8 May 2023 16:03:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83BDD3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683561836; bh=mz6wqEbYPKQk/KOnhlrL9fPcxFRiKbZKCXmyzIsETbI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tNxLbZzQAJCo7rczRGkREAMRaFf9FR+O6TSSBEf3zvchOPZ+7j7ddsHLndDBguV0H 8e2A+JzCeYvcVVkYJXM1y7PkKOXnzZNT2EcK7qop2Jrht9M9w5h5CkC84N510zSxAc nE7d2Nx+3MmBnZReGzW1Sytn23yu3Fhj7KDOdqd8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109771] Unnecessary pblendw for vectorized or Date: Mon, 08 May 2023 16:03:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component 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=3D109771 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Component|rtl-optimization |tree-optimization --- Comment #2 from Andrew Pinski --- vect_y_w_0_5.51_14 =3D MEM [(void *)t_4(D)]; vect_y_w_0_5.52_10 =3D MEM [(void *)t_4(D) + 16B]; vect_y_w_0_5.54_24 =3D MEM [(void *)t_4(D) + 48B]; vect_y_w_0_5.55_6 =3D VEC_PERM_EXPR ; vect_x_w_0_36.60_44 =3D MEM [(void *)t_4(D)= + 32B]; vect_y_w_0_5.62_21 =3D VEC_PERM_EXPR ; vect__25.63_20 =3D vect_y_w_0_5.51_14 | vect_x_w_0_36.60_44; vect__25.63_19 =3D vect_y_w_0_5.55_6 | vect_y_w_0_5.62_21; MEM [(long unsigned int *)t_4(D) + 32B] =3D vect__25.63_20; MEM [(long unsigned int *)t_4(D) + 48B] =3D vect__25.63_19; vs vect_y_w_0_10.25_44 =3D MEM [(long unsigned= int *)t_2(D)]; vect_y_w_0_10.26_46 =3D MEM [(long unsigned= int *)t_2(D) + 16B]; x =3D MEM[(const struct u256 &)t_2(D) + 32]; vect__6.14_9 =3D MEM [(long unsigned int *)= &x]; vect__8.18_14 =3D vect__6.14_9 | vect_y_w_0_10.25_44; MEM [(long unsigned int *)&z] =3D vect__8.1= 8_14; vect__6.14_11 =3D MEM [(long unsigned int *= )&x + 16B]; vect__8.18_36 =3D vect__6.14_11 | vect_y_w_0_10.26_46; MEM [(long unsigned int *)&z + 16B] =3D vect__8.18_36; x =3D{v} {CLOBBER(eol)}; MEM[(struct u256 *)t_2(D) + 32B] =3D z; z =3D{v} {CLOBBER(eol)};=