From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3A5B2384BC17; Thu, 27 Aug 2020 06:07:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A5B2384BC17 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598508463; bh=aRzaAV4yUmUGG3MetzIbaILJhT3JyzZFmRKtrWxC71E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BZdHn+gYbOeZDizpeW3H0t8gZIO5f9fvq/lVW6ujqA4a1SDkmS0xPHQ+g2O9pVfrx yEBu19PCnqhFQrSuA99XMEnQWv8ysZVgQS3IhEO0mWINDFwNIyvB3+bXVDXWj7MhaT XtWdXhVipghsEUxXqhqVUG9N32CnwdsYgopCbPJs= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/96565] Failure to optimize out VLA even though it is left unused Date: Thu, 27 Aug 2020 06:07:43 +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: 11.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: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2020 06:07:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96565 --- Comment #11 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:989bc4ca2f2978baecff00f6d0532994b82897ef commit r11-2899-g989bc4ca2f2978baecff00f6d0532994b82897ef Author: Richard Biener Date: Wed Aug 26 08:44:59 2020 +0200 tree-optimization/96565 - improve DSE with paths ending in noreturn This improves DSEs stmt walking by not considering a DEF without uses for further processing (and thus giving up when there's two paths to follow). 2020-08-26 Richard Biener PR tree-optimization/96565 * tree-ssa-dse.c (dse_classify_store): Remove defs with no uses from further processing. * gcc.dg/tree-ssa/ssa-dse-40.c: New testcase. * gcc.dg/builtin-object-size-4.c: Adjust.=