From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1666) id BAB713846024; Fri, 3 May 2024 13:55:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BAB713846024 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714744531; bh=2itkDZO6o/wyERCcoNwhffOVAO4EbxfNZaWp8ROtcI8=; h=From:To:Subject:Date:From; b=JZhlfY+jAJvdlicUdpgfR1G5ejWnRg014j3a54j4Z2i4YZq8zA6eh2jxU9q4NwsN9 gktwEDL6TWWHnHjw2XGpMHw+tNRUx/lbemUGgTtg10a9wA5Ea5yQe0oyn5s0tJkEZR HMvgwQoZf0UZWwfmb8lyPVoFR7AFzorUiGrfXfiY= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Biener To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-8684] tree-optimization/114749 - reset partial vector decision for no-SLP retry X-Act-Checkin: gcc X-Git-Author: Richard Biener X-Git-Refname: refs/heads/releases/gcc-13 X-Git-Oldrev: 0624852a3ea684f6b9dabea864bcb45e31304728 X-Git-Newrev: 704b15e277a8792ac4cd6008ee08bec4b047a3e6 Message-Id: <20240503135531.BAB713846024@sourceware.org> Date: Fri, 3 May 2024 13:55:31 +0000 (GMT) List-Id: https://gcc.gnu.org/g:704b15e277a8792ac4cd6008ee08bec4b047a3e6 commit r13-8684-g704b15e277a8792ac4cd6008ee08bec4b047a3e6 Author: Richard Biener Date: Wed Apr 17 10:40:04 2024 +0200 tree-optimization/114749 - reset partial vector decision for no-SLP retry The following makes sure to reset LOOP_VINFO_USING_PARTIAL_VECTORS_P to its default of false when re-trying without SLP as otherwise analysis may run into bogus asserts. PR tree-optimization/114749 * tree-vect-loop.cc (vect_analyze_loop_2): Reset LOOP_VINFO_USING_PARTIAL_VECTORS_P when re-trying without SLP. (cherry picked from commit bf2b5231312e1cea45732cb8df6ffa2b2c9115b6) Diff: --- gcc/tree-vect-loop.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc index 73caeb283e3..8bb2e3ff1c8 100644 --- a/gcc/tree-vect-loop.cc +++ b/gcc/tree-vect-loop.cc @@ -2957,6 +2957,7 @@ again: LOOP_VINFO_VERSIONING_THRESHOLD (loop_vinfo) = 0; LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P (loop_vinfo) = saved_can_use_partial_vectors_p; + LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo) = false; goto start_over; }