From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0EC73385828E; Mon, 8 Jan 2024 10:09:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0EC73385828E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704708587; bh=Bh7M/0AhXbSsKd/dvAM2h6Drd59pE34MIaSQMeVJGNw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Zhg+DNj0MeaKFQNgRQQ0n2mnoS7pUBBqMwBOGgZ91S3dV4pxEmEffUxPbMIkkvWNw KyaiwAusvMLjFQqLXNV7HvQ29Alo61cYyVNwe0jz7UID/wUkhi1Y7/w1d1C2SuolK4 5amH6mtay7z67stHlulTaKIac6KUt+xu/VAZPMMw= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113210] [14 Regression] ICE: tree check: expected integer_cst, have cond_expr in get_len, at tree.h:6481 Date: Mon, 08 Jan 2024 10:09:34 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub 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=3D113210 --- Comment #11 from Jakub Jelinek --- (In reply to Richard Biener from comment #9) > That is, another fix might be to adjust NITERSM1 to NITERS - 1 when > NITERS went constant ... (btw, I want to get rid of _NITERS and only Or we could only use fold_build2 for the PLUS_EXPR 1 computation if NITERSM= 1 is INTEGER_CST, otherwise use build2...=