From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4DEF1385842A; Fri, 23 Jun 2023 20:07:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4DEF1385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687550878; bh=YEhd1sXcHCnsdHVvJ9q5l1GckfzMc7c0G8VBAwy0ank=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gPRg4bVw2jMX0eK1RT7VAM7vSuIJX/jUyZS8ugRukSlwAUYIc7jQ7PCLROIYEyHAx 1u4jmc+zAyR+1zv+4eQbYZozNUmiR0KgoaiO2usIMG108vBMvOQGBiHz9kd81qqTPZ HQLiwl5NMWs0UL3T899bTDzDAeFzEnkEXt3uC70o= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110381] [11/12/13/14 Regression] double counting for sum of structs of floating point types Date: Fri, 23 Jun 2023 20:07:58 +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: 12.1.0 X-Bugzilla-Keywords: needs-bisection, wrong-code 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: 11.5 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=3D110381 --- Comment #4 from Andrew Pinski --- (In reply to Lennox Ho from comment #3) > Thanks. -fno-tree-vectorize appears to fix GCC 12.1 at -O2. >=20 > Curious, why is -ftree-vectorize enabled at -O2 with GCC 12.1? Yes see https://gcc.gnu.org/gcc-12/changes.html#general . > The documents say it's only turned on by default with -O3 > ``` > https://gcc.gnu.org/projects/tree-ssa/vectorization.html > Vectorization is enabled by the flag -ftree-vectorize and by default at -= O3 > ``` That is not the documentation for the release but rather for the project wh= ile it was during development of it originally (back in early 2000s). The documentation for the GCC 12.1 release is located at: https://gcc.gnu.org/onlinedocs/gcc-12.1.0/gcc/Optimize-Options.html#index-f= tree-vectorize Which specifically mentions -ftree-loop-vectorize and -ftree-slp-vectorize = are enabled at -O2 and above (-ftree-vectorize is a meta option for those 2 options).=