From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B62853858292; Wed, 6 Dec 2023 08:55:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B62853858292 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701852951; bh=ZqTv1nIz+PeQfOVEoWpEUEfZkf8N9H+LAXgrNEpyius=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YkAKdDWxr5nlFPt32nAQyFPg8xV2seGiWmEUqOvTAb3oGLkB6mjRzbsQZk82epdLJ 6IrH0vnxT0nvTdXk6VEbeBj3X5w+B+3N7lZf2UibuMXVGavYhUJ9O+UvYe+L3I6lDd 66LbxN7q7q+Xfy2xqo/TTAKwC26ki+qj8koyFtlg= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106511] [13/14 Regression] New -Werror=maybe-uninitialized since r13-1268-g8c99e307b20c502e Date: Wed, 06 Dec 2023 08:55:51 +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: 13.0 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D106511 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #9 from Richard Biener --- (In reply to Andrew Macleod from comment #8) > (In reply to Richard Biener from comment #2) > > VRP could use max_stmt_executions here (note it doesn't properly handle= loop > > nests so the name is somewhat misleading) >=20 > Do you have to ask for max_stmt_executions on each loop nest for the stmt= to > get the real total? and multiple them all together? or can you only cou= nt > on loop_outer()? max_stmt_executions is for the loop you pass, not including outer loop (or containing irreducible region) iterations. The loop you usually pass is gimple_bb (stmt)->loop_father which is the immediately containing loop. This will be useful only when the PHI we want to analyze is in the very same loop, if it is in an outer loop then things become more complicated (you then could multiply by max_loop_iterations of the containing loop maybe - but start simple ;))=