From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 910153853819; Tue, 30 Aug 2022 11:15:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 910153853819 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661858132; bh=FDMy2xlrdYCHIB+EfZ8t81Ub89Il8tXgKIZFYx+DEvg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gJz2lHcmtGmebDkPunyRwDHyc9m4q0CPhNsVN1lDsqUFkg8FNyMu+QJiT2NomeYy7 1tB8CwHMo9hBfmD0aRwWrV0vSZBNlP5A2+DQSZzA8t7Vc73qeCd1WGXGjA+xlN8xWb DSrsbYDxht2QV3McZccbYwtlYVYiUCC2rMB8AoKk= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/67196] [10/11/12/13 Regression] loop-induced false positive from -Wmaybe-uninitialized Date: Tue, 30 Aug 2022 11:15:31 +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: 6.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 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=3D67196 --- Comment #8 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:61051ee5cfd59ee292984641d02caac85f6dfac3 commit r13-2273-g61051ee5cfd59ee292984641d02caac85f6dfac3 Author: Richard Biener Date: Tue Aug 30 11:47:49 2022 +0200 tree-optimization/67196 - normalize use predicates earlier The following makes sure to have use predicates simplified and normalized before doing uninit_analysis::overlap because that otherwise cannot pick up all flag setting cases. This fixes half of the issue in PR67196 and conveniently resolves the XFAIL in gcc.dg/uninit-pred-7_a.c. PR tree-optimization/67196 * gimple-predicate-analysis.cc (uninit_analysis::is_use_guarded= ): Simplify and normalize use prediates before first use. * gcc.dg/uninit-pred-7_a.c: Un-XFAIL.=