From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 62E55385AE58; Mon, 5 Sep 2022 22:20:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 62E55385AE58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662416440; bh=n0EiizyOtJrkJJGrLfzlZRNK4cEA5fujEfTSN1+heQA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=p94CSg3YQJcg3ZGoItOMUyxGWK/1I3FhNkzxOmzVpKa1GUpF0oZGxJrqzLC8R8WXt +/pM7ZeXAn4ncv/3LIMxiksE2qzO/BYNb6WCirL8C/ngTwlnFEZfqKFKD0GxwUZdO0 hQelQrPS4lj5dY7l5CLP1iTdS0yq3bEMzXVfvI8A= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106842] [12 Regression] misleading warning : iteration X invokes undefined behavior Date: Mon, 05 Sep 2022 22:20:40 +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: 12.2.1 X-Bugzilla-Keywords: diagnostic, needs-bisection 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: 12.3 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=3D106842 --- Comment #1 from Andrew Pinski --- The IR difference comes from PRE. In the case where the warning happens: find_duplicates: duplicate of find_duplicates: duplicate of find_duplicates: duplicate of vs where it does not happen: find_duplicates: duplicate of find_duplicates: duplicate of =