From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 51B403856974; Mon, 16 Oct 2023 08:47:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51B403856974 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697446025; bh=qCKmqdjrsNW6SQrh2UM6ik+dq28Ni6EJpU0zJhPFK7I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=P/AEp/TOskadJ7eD9SsEpROQD/X1ne+2b5Qb10kAKaMdxBQldKNQdD71FJ0PsZMfl vPxra/FsLvf8NPs8BHBHORHAf4iq15Iil0vNIZQZs9eNGsPMYR7ispSyX+RvMolZel 6XpVBJZANjvEUhWv5ecm56yVgI5uFJtR9BVBbZqI= From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111820] [13/14 Regression] Compiler time hog in the vectorizer with `-O3 -fno-tree-vrp` Date: Mon, 16 Oct 2023 08:46:57 +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: compile-time-hog, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 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=3D111820 --- Comment #6 from rguenther at suse dot de --- On Mon, 16 Oct 2023, crazylht at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111820 >=20 > --- Comment #5 from Hongtao.liu --- > (In reply to Richard Biener from comment #3) > > for (unsigned i =3D 0; i !=3D skipn - 1; i++) > > begin =3D wi::mul (begin, wi::to_wide (step_expr)); > >=20 > > (gdb) p skipn > > $5 =3D 4294967292 > >=20 > > niters is 4294967292 in vect_update_ivs_after_vectorizer. Maybe the lo= op > > should terminate when begin is zero. But I wonder why we pass in 'nite= rs' > Here, it want to calculate begin * pow (step_expr, skipn), yes we can jus= t skip > the loop when begin is 0. I mean terminate it when the multiplication overflowed to zero. As for the MASK_ thing the skip is to be interpreted negative (we should either not use a 'tree' here or make it have the correct type maybe). Can we even handle this here? It would need to be a division, no? So I think we need to disable non-linear IV or masked peeling for niter/aligment? But I wonder how we run into this with plain -O3.=