From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B0A813858C54; Thu, 16 Nov 2023 09:15:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B0A813858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700126108; bh=/0+rGuPcHoi3f39A9+CwbbRUhncNGFYGuliji7YBCHM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=POehdTdxma+sn0lV7GKGnWYxmOfYB6uOr3hqDwiYDe4g+pvTcZWll7GY3oLhd61Vk meqY7HvaytJc0LAZ5fp3hVRfJw7qoyJXFrq/qG3wtFtuyIvUYuL+JzHb7bUJVzb0d1 6aPzcIr/lDl5z1IPG66hJMIgMoT56rqt/v1LT9PM= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112325] Missed vectorization of reduction after unrolling Date: Thu, 16 Nov 2023 09:15:06 +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: rguenth 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: 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=3D112325 --- Comment #5 from Richard Biener --- Yes, as I said in comment#2. Note I specifically ended up not open-coding = the reduction because of concerns of efficiency. So a target should only provi= de reduc_*_scal patterns when they are more efficient than open-coding with the obvious sequence. That possibly means fixing the issue I mentioned in comment#2 will not be enough to get this BB vectorized on x86.=