From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 74280385BF99; Wed, 7 Apr 2021 12:28:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74280385BF99 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/99956] loop interchange fails when altering bwaves inner loop Date: Wed, 07 Apr 2021 12:28:24 +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: 11.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: cc keywords 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2021 12:28:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99956 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amker at gcc dot gnu.org Keywords| |missed-optimization --- Comment #1 from Richard Biener --- prepare_perfect_loop_nest fails doing compute_access_strides and I wonder if we should do prepare_data_references data-ref analysis with respect to the BBs containing loop and only after collecting all datarefs instantiate the access fns up to the outermost loop possible. I don't remember exactly how we deal with this but it looks like compute_access_stride doesn't look at the access function as computed by dataref analysis but instead it analyzes things itself and could in theory instantiate_scev one-loop-at-a-time communicating "failure" upwards?=