From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A63843858C60; Fri, 9 Feb 2024 03:38:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A63843858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707449927; bh=yY7NDPgP/WxaChIlYACa77rX1m0rL1q7iYmjMSIAvKE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F2KwgKmGfOq8JvJXswi0KlXuHixWhDhYvynhoGf/J+IOoA/3mcJaO3mhMNNnLIXOS OO6dqZ2hUUNN1cTSluUYCG0MknQ4hgzpA6oMvLcXV1pQ8ZLryecXw6Er4oMFrd2tjk OGYYdw0JhIq+6q2K/U4nsdYDZc2+yTLeuTsPZsLI= From: "absoler at smail dot nju.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/113838] regression of redundant load operation introduced by -fno-tree-forwprop introduce Date: Fri, 09 Feb 2024 03:38:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: absoler at smail dot nju.edu.cn X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D113838 --- Comment #4 from absoler at smail dot nju.edu.cn --- @(In reply to Jakub Jelinek from comment #1) > Disabling optimizations and then wondering why optimizations didn't happen > is too weird. Don't do that. Such options are intended for debugging GC= C, > or perhaps working around some compiler or application bug, but performan= ce > of generated code should be only judged without such options. The gimple ir has no problem, but `_13` is replaced with g_26[5][3][0] in t= he follow-up process, this shouldn't be expected behavior. We question this option because we found in an older version of gcc (10.2.0= ), only the O2 option is needed to produce the same bad code, so we worry about there's a hidden un-fixed problem and it's re-triggered by this option. Besides, the bad binary code introduce more load operation than the source = code (without optimization), so we thought it's necessary to check it regardless= of which optimization is disabled.=