From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CCEE53858C66; Mon, 16 Oct 2023 07:14:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CCEE53858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697440458; bh=mTSDQl1BcVsnGUzsmS3K3qIYUgJJkbiCDWgPRiZCUqk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UfJgXOY3eWpxYMkLVEOQY3V/mnACTZwITKRoL4p5Yna6DoVUznXDm39u2bfEDqNCO jQOJg1Y1AtfBMS156wk3vCfLbLon8YLUrbAdRwX2JctwSaQrdK7sxSTtwoDkzVbXx3 IUwPhezjP8/Zjg6ZXH4TcB2blz3ArTFUyNJLVCDo= From: "rguenth at gcc dot gnu.org" 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 07:14:18 +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: rguenth at gcc dot gnu.org 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: priority 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=3D111820 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 CC| |crazylht at gmail dot com --- Comment #3 from Richard Biener --- for (unsigned i =3D 0; i !=3D skipn - 1; i++) begin =3D wi::mul (begin, wi::to_wide (step_expr)); (gdb) p skipn $5 =3D 4294967292 niters is 4294967292 in vect_update_ivs_after_vectorizer. Maybe the loop should terminate when begin is zero. But I wonder why we pass in 'niters' and then name it 'skip_niters' ... CCing author for fixing.=