From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F4CB3858C66; Thu, 13 Apr 2023 12:16:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F4CB3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681388167; bh=/jMXO4o0zfA+Ty5uy08h4UzNguFlRUwhrQ45NfiCfyA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cJ4sAun/GELSXII2OHRD/2PmpxnW8TJQK4a3QeE46A/NBJut+4a8omdZXbEkXR62v j8DC1dCztzgaUFH7ghLGDjoofTSNHzIls7ycmfWZH68lDRWyg6uxsHMJc7ZPrDYoNy LBnG9gVOLkqyr6/4nlQe1p9EU46yvjMtSbOSDX6M= From: "chenglulu at loongson dot cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108357] [13 Regression] Dead Code Elimination Regression at -O2 since r13-4607-g2dc5d6b1e7ec88 Date: Thu, 13 Apr 2023 12:16:06 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: chenglulu at loongson dot cn X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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=3D108357 --- Comment #12 from chenglulu --- (In reply to Xi Ruoyao from comment #11) > (In reply to chenglulu from comment #10) > > (In reply to Xi Ruoyao from comment #5) > > > The test fails on loongarch64-linux-gnu. foo is kept in 114t.threadf= ull1, > > > but removed in 135t.forwprop3. > > >=20 > > > Does this mean something is wrong for LoongArch, or we should simply = check > > > the tree dump in a later pass (for e.g. 254t.optimized)? > >=20 > > If the definition of the macro DEFAULT_SIGNED_CHAR is changed to 0, the= test > > case can pass the test. I guess it is because the definition of > > DEFAULT_SIGNED_CHAR affects the optimization of the ccp pass, resulting= in > > some blocks that cannot be removed, resulting in the failure of this te= st > > case. >=20 > Hmm, but we cannot change DEFAULT_SIGNED_CHAR or we'll break ABI and API > everywhere. And x86_64-linux-gnu also uses DEFAULT_SIGNED_CHAR=3D1. Uh, I didn't notice this, I'll keep looking.=