From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D6C93858D28; Sun, 21 Apr 2024 19:55:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D6C93858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713729316; bh=5QudSEwm+qYV0cNq+L1DQqun+7NDgSujdS09rY0g2ZE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ovhV6RmNlOGAsXPLnrN2m8P0bvgTgTjjgL0Ke8umgZa3ZgTIVEFVOJxSrGoOqQqQd Rkm8HnvBzhkXULGGVp7UMT26ze8ltG7E/6DX9cRCt18hDccN8ADpmzz7dWBPXC2tlX HlXIJQEsMMw67tFkvmidhyVPrJkHktQOsO7bl/Os= From: "xxs_chy at outlook dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114797] Missed optimization : fail to merge memset with unrelated clobber Date: Sun, 21 Apr 2024 19:55:16 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xxs_chy at outlook dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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: 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=3D114797 --- Comment #2 from XChy --- It looks like for completely overlapped memset, it's merged: https://godbolt.org/z/4r7Eqr1Ee With clobber, that's not the case: https://godbolt.org/z/8jhaEbKqo=