From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A46E73858C3A; Tue, 14 Nov 2023 01:28:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A46E73858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699925284; bh=6xq4xNssnj5s++OOM9HGV2sigw9WS3NLm6reXoeBsOw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hahyv2CnWMr19IIygEQm9DJH2xK11tY6kgAg2y5nDn4gjPO3OnX0G6IKjxeZpL80H EXxU9I1PPhFF/HofMfSh/zchr+pwDj0eIIXNwnYFgbNaxolG3ANGIkg2Z1bjpKYmo5 FwwG+yN0jrlg07DkQL68oSORSHUPUY5uwpkvFQk8= From: "cvs-commit 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: Tue, 14 Nov 2023 01:28:03 +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: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 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 #11 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:fd1596f9962569afff6c9298a7c79686c6950bef commit r14-5428-gfd1596f9962569afff6c9298a7c79686c6950bef Author: liuhongt Date: Mon Oct 30 15:43:48 2023 +0800 Handle bitop with INTEGER_CST in analyze_and_compute_bitop_with_inv_eff= ect. analyze_and_compute_bitop_with_inv_effect assumes the first operand is loop invariant which is not the case when it's INTEGER_CST. gcc/ChangeLog: PR tree-optimization/105735 PR tree-optimization/111972 * tree-scalar-evolution.cc (analyze_and_compute_bitop_with_inv_effect): Handle bitop with INTEGER_CST. gcc/testsuite/ChangeLog: * gcc.target/i386/pr105735-3.c: New test.=