From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8DF103858C41; Mon, 4 Dec 2023 17:31:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DF103858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701711103; bh=KX9QKdYaQwHTKMBOXvjmVMtZt2f6IGbAsq29uFCkIf8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=t/OsA6e/2GnFD07mzWL7Ih/yympbc5zAa+r8SyIP9fJfQ1xjg+XZveBSIu9I1th5+ b1wI0Wo02ow/b+2JpBFvcE/KL1oEtT0C1DdW+YUUPwQSyUhpnEOcigHuNv7VqUBE8z z5NAtuWsFXnXXIhGYOix6U5jUAQwdqBc1EfOspeE= 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: Mon, 04 Dec 2023 17:31:42 +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 #16 from GCC Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:886f256ce3be4aa85f30af88558f0dfcb8003300 commit r14-6126-g886f256ce3be4aa85f30af88558f0dfcb8003300 Author: Andrew Pinski Date: Sat Nov 11 20:33:28 2023 -0800 MATCH: Fix zero_one_valued_p's convert pattern While working on PR 111972, I was getting a regression due to zero_one_valued_p matching a signed 1 bit integer when it came to convert. This patch fixes that by checking the outer type too. Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: * match.pd (zero_one_valued_p): For convert make sure type is not a signed 1-bit integer. Signed-off-by: Andrew Pinski =