From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB05E3858C41; Wed, 17 May 2023 18:08:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB05E3858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684346908; bh=95slFSviLpeobpacrsxgf+JZDk7R1NulVy4yznRzi4A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M7blhVIMg5jxma1rvR6B4vcy3+9WR8T9fvaUXuAL55bu/TrNFwVUcVwkQl0jY6paa eEyJ3JqBfS3zvK/MgTvXUTqZ/t16C5Ekdg8KyChlU3KSzocHCJLKfniAms8uTFRakP +E9lcdp3kFGlGXsagjEKkooB0Zebn2LDe53n4iho= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/109605] -fno-tree-vectorize does not disable vectorizer Date: Wed, 17 May 2023 18:08:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal 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 cf_reconfirmed_on everconfirmed 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=3D109605 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-05-17 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski --- Confirmed. Take a simple LP64 testcase (just to make the aliasing happy): ``` int f1(long long *a, long *b, long *c) { long a0, a1; a[0] =3D b[0] + c[0]; a[1] =3D b[1] + c[1]; } ``` At `-O2`, SLP vectorizers it. `-O2 -fno-tree-vectorize` disables the SLP vectorizer But if you did: `-O2 -ftree-slp-vectorize -fno-tree-vectorize` the SLP vectorizer is turned= on still. This is what is definitely counter-intuitive really.=