From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 29F0E3858408; Thu, 2 Nov 2023 10:14:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 29F0E3858408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698920081; bh=r7Fwuhfi5RlpeWCcrPXJwS/I+9T5xXINcpIJqETzx5k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fXbh9gpHqaEPWVj/+QWviDJgzCAmMEatkwYFBpTnlFlRGLYV86WY1AP+ypETmALbJ xACVz8/SgmnftWz1zcVlNkuPLT5B6Trs2DyPmp/vkcKd4FvS1tR5KmX8jSwFbADmvY ThmfIAR1FeG++q10j+6hT2cw/jMSp9GJBZfyQL6Y= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112331] Fail vectorization after loop interchange Date: Thu, 02 Nov 2023 10:14:40 +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: normal X-Bugzilla-Who: juzhe.zhong at rivai dot ai 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: 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=3D112331 --- Comment #4 from JuzheZhong --- I see.=20 It does vectorize it with -fno-vect-cost-model -fno-loop-interchange: https://gcc.godbolt.org/z/8EEWcPro3 Codegen same as LLVM. I am gonna revisit it in GCC-15 (GCC-14 stage 1 is closing soon). Thanks a lot!=