From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7136E3858C62; Wed, 3 Jan 2024 19:35:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7136E3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704310508; bh=SFQAzR/9qphA4oS1yd03gvVJO31H9jvIDhCHW2xC1OE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WVoT2uzXAR9Drlh43JcztKIAvlsyRV8epukdyk3jLTeuPkT/1xW6gYC/FPceIJdbO ERWhV4MxKqwFJVfDL99wogA8CoGb+PYugA112Px9DjTEURCE4bbzcy+1soZqWIEiKb cepRh8vuhiEgbLEYeWECn/Yv+074mU73bmm1E9NM= From: "phosit at autistici dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/19347] Invariant load not moved out of loop Date: Wed, 03 Jan 2024 19:35:07 +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: 4.0.0 X-Bugzilla-Keywords: alias, missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: phosit at autistici dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 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=3D19347 --- Comment #10 from Phosit --- The analysis in my previous comment is wrong. I don't know why there is no alias-check at -O2. Also the loop _is_ removed at -O3.=