From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CC63A38582AC; Mon, 24 Jul 2023 06:21:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC63A38582AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690179679; bh=IbVf2O8yG7a1TmDwrFyDHriUs6qOjGe4Xvw3xPmQjHI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fkwbk8mHHt/BKr+B3X3CJjmE/L+ub2k1La5ubum9MI6sHYD0v/oHA4JMqZZQ8ntQc FBLJoWNzGG1KDHzF7zk9x65JnWkj1xELrWFr+9tYoXIH/ZLEQA4MsVQ6DbLRwRezF0 UbmkFBOV8nkCLHJrtoR/eVshALa25ndM6m5yYoYs= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110740] [14 regression] gcc.target/powerpc/p9-vec-length-epil-1.c Date: Mon, 24 Jul 2023 06:21:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D110740 --- Comment #6 from CVS Commits --- The master branch has been updated by Kewen Lin : https://gcc.gnu.org/g:d07504725973ccdec78929a09dc13e5ebd9472f6 commit r14-2736-gd07504725973ccdec78929a09dc13e5ebd9472f6 Author: Kewen Lin Date: Mon Jul 24 01:20:30 2023 -0500 vect: Don't vectorize a single scalar iteration loop [PR110740] The function vect_update_epilogue_niters which has been removed by r14-2281 has some code taking care of that if there is only one scalar iteration left for epilogue then we won't try to vectorize it any more. Although costing should be able to care about it eventually, I think we still want this special casing without costing enabled, so this patch is to add it back in function vect_analyze_loop_costing, and make it more general for both main and epilogue loops as Richi suggested, it can fix some exposed failures on Power10: - gcc.target/powerpc/p9-vec-length-epil-{1,8}.c - gcc.dg/vect/slp-perm-{1,5,6,7}.c PR tree-optimization/110740 gcc/ChangeLog: * tree-vect-loop.cc (vect_analyze_loop_costing): Do not vectori= ze a loop with a single scalar iteration.=