From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC7D53858D28; Mon, 17 Oct 2022 14:32:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC7D53858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666017155; bh=EX2pZQ11PhTT0hxq2K99lgPVmVp2iBbVg709ZsHKF4s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oKsZoBoF3s98I0UbMIYF3AgC6j6p0rptmxJk58I0WqH4MA/WmdC/SBH0NeR4wpJo5 1ItttuqkVHJ9cYjSS6BrYyxZKujQ5+7NGY5PcVs9b52azftbPQEr6Q8gOLfdltOVYr dH6f3iCmEDr6zLD7HuuSFcm07LahTiqRnd6slsMo= From: "avieira at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107275] [13 Regression] Recent ifcvt changes resulting in references to SSA_NAME on free list Date: Mon, 17 Oct 2022 14:32:28 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: avieira at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: avieira at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D107275 --- Comment #3 from avieira at gcc dot gnu.org --- The prodding helped! The problem is that dce was indeed removing the ASM as= it wasn't recognizing it as a stmt that was live. This is because ifcvt would = have normally bailed out when encountering such an asm stmt when doing 'find_data_references_in_loop'. I have a patch that fixes this, will test it and post it upstream. My plan = is to bring forward the references check, as we do not need to lower bitfields= if that fails, given loop-vectorization will fail altogether anyway.=