From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CFCF33846410; Mon, 8 Apr 2024 21:37:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CFCF33846410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712612234; bh=9hyvIPbBpPrcEjxNEsjxu/7rcHGKUxmu9i5oKT8K0/o=; h=From:To:Subject:Date:From; b=asiy+Ic5T5cSXKScK1Q1WtRz1xAxDdi4TlAaueKicuRjoME23E2jVzq/qPrAilhLO NqiJJHGdf++vanoxD/q/+BWxRZlf6Rrq0QNDcOqdqCh71hYS8LG9j76+UzFX9TLMwc m2mGRHRaq5YzSsSI3pP+MCSeB8NHMq7PMfijtpFk= From: "franckbehaghel_gcc at protonmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/114647] New: missing DCE when looping over a VLA Date: Mon, 08 Apr 2024 21:37:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: franckbehaghel_gcc at protonmail dot com 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D114647 Bug ID: 114647 Summary: missing DCE when looping over a VLA Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: franckbehaghel_gcc at protonmail dot com Target Milestone: --- $cat foo.cpp #include "stdint.h" #include "stdio.h" void foo(int n) { uint64_t a[n]; for (uint32_t i=3D0;i