From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 76F9B3858D28; Thu, 28 Dec 2023 03:48:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76F9B3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703735312; bh=wWI5ZDdiLk8VxiDknq226vJXJgqXo9nWc1ho151Cvqs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Otv7r0+AF/Qxbzknns1Y44iX4Ltp5AKPEh8yugkbex0AAoM3320QwwDV/0v+HDc4r WGCrzIJheX1d+tyUOOUgDXw28THcRD0dR9NgnSHfnYyLghvlOUZBlqiUS5ffULI1U2 oOzJbyhecX4r3Jy9Pqr3PRmz0A4EGGHwfmXjen5g= From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113134] gcc does not version loops with early break conditions that don't have side-effects Date: Thu, 28 Dec 2023 03:48:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris 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=3D113134 --- Comment #4 from Tamar Christina --- (In reply to JuzheZhong from comment #3) > I guess this code is just disabling partial vector for length for now. >=20 > And need me to test and port this part for length in the followup patches. >=20 > Am I right ? Yeah, it needed to safely not allow it through for now. Once implemented=20 you'll hit an assert in vectorizable_live_operations where you need to prov= ide a way to also get the first active element from a vector.=