From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D04CE3858D35; Fri, 27 Oct 2023 04:01:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D04CE3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698379298; bh=XwT1GakcAg2mbEcuMbVV1A31qgVTbsnokceQGTOP8L8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SOAbbkFxar+B0kX49rMdmE0YthIhdgM1rbUIukTtJIePK6ElaOAou5BKtiyUJPuVF /yQ/IC4vMNelVXR9M+FRFeAWXYVzO8nZj6Kp1Puz6IkBsmGDif+Fw4e35Xt0xUU7ic Y4P3MHXrifEzo1X/StxGdXWvSGQv/5S1Vl1aW+yU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111972] [14 regression] missed vectorzation for bool a = j != 1; j = (long int)a; Date: Fri, 27 Oct 2023 04:01:38 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia 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=3D111972 --- Comment #5 from Andrew Pinski --- Oh this is the original code: https://github.com/kdlucas/byte-unixbench/blob/master/UnixBench/src/whets.c HEHEHEHEHEHEHEHEH. Basically after optimizing: _9 =3D j_19 !=3D 1; _14 =3D (long int) _9; Over to: _14 =3D j_19 ^ 1; We could optimize this whole loop out. Note this is a bad benchmark.=