From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 682573858426; Sat, 13 Apr 2024 17:50:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 682573858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713030655; bh=wsc6GOJN+w08DEC5HDedU3Cg9YHjlRFX2gHKTtLcFVg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DGn2gREvGLZrAIQlr6gKr+4yM7VR1Em/HDhywX7Zf8q6kECTi113lyoaKc09aKFoR 5QQGnPc7L+0UrdXo7f7lPjHV4ixn87/ZbcV/PKrvu7gdD9Rn1yAAimWTMDqSbzaHPu BzZG1g78GFcGOYjTo5UYQmCtMF3HfeWO2Nf+cRLI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114711] Missed optimization: fold load of global constant array if there is obivous pattern Date: Sat, 13 Apr 2024 17:50:55 +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: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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_status keywords everconfirmed cf_reconfirmed_on bug_severity 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=3D114711 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |missed-optimization Ever confirmed|0 |1 Last reconfirmed| |2024-04-13 Severity|normal |enhancement --- Comment #2 from Andrew Pinski --- In the openssl code, it is a loop which can be unrolled and gcc does and th= en is able to handle the load for string just fine but not the resulting ID. S= ee the linked issue for that. But confirmed on this one but it is definitely harder.=