From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4A03D3858D39; Thu, 29 Jun 2023 07:33:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A03D3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688024004; bh=jXQOrvrRtcn4Ei5tSMKMK6r070G8QRgvMz/F6MmlWb8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vHfepBxvjvkNQEWtlJCm5b5h38RHUNHkzlmlQ6O0uRlcPC8haMzKHhcbQja/hNCpB /j/rFomaHYM7G4VUr1TV1eRirrV7/hhltTfFOKXOTL3tlqB7sa63G9Oh5s4jRMdDei W3EK+bRDH+snaSc3u+A90SCSkwWnXAJ1RWE7lWNU= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110474] Vect: the epilog vect loop should have small VF if the loop is unrolled during vectorization Date: Thu, 29 Jun 2023 07:33:24 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org 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: cc 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=3D110474 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org, | |rsandifo at gcc dot gnu.org --- Comment #1 from Richard Biener --- I think it's reasonable to not apply unrolling to the vectorized epilogue, = but note we have to be careful to adjust the maximum number of iterations for i= t we compute. Note this will also necessarily make the vectorized epilogue iter= ate. We could also leave the decision to the target, providing a suggested_epilog_"unroll" factor. That could also be used to for example get a 128bit vector epilogue for a 512bit main loop to address similar concerns there.=