From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B49AE3858416; Wed, 31 Jan 2024 07:00:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B49AE3858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706684438; bh=F1FgN4Ry3H+OVrSwlFop3z/BiOePn/4ssaCQtEAM5WQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=g7i6bcd7y/BQXG2+364LwQEcaici9t8pxq7xYVfhH2LAxQ+WCrsfH6RriS6NGDt9f qv4UF+TDah89gEJ5z0zUS3fJFpURFL/7vzzBWfZwjorx96i+yFwAVUKwDLGYAd9pzx mC50YpHkgIpan/yGQAxD2f1uud0f+dA9H935mo5I= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/99395] s116 benchmark of TSVC is vectorized by clang and not by gcc Date: Wed, 31 Jan 2024 07:00:36 +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: juzhe.zhong at rivai dot ai 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: 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=3D99395 --- Comment #12 from JuzheZhong --- OK. It seems it has data dependency issue: missed: not vectorized, possible dependence between data-refs a[i_15] and a[_4] a[i_15] =3D _3; STMT 1 _4 =3D i_15 + 2; _5 =3D a[_4]; STMT 2 STMT2 should not depend on STMT1. It's recognized as dependency in vect_analyze_data_ref_dependence. Is is reasonable to fix it in vect_analyze_data_ref_dependence ?=