From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E31963858C5E; Tue, 1 Nov 2022 15:25:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E31963858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667316326; bh=t29Y7ti4PUJLCcv9G5/R84v4Vow4cfSn22HVZw/vyrs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IJEf4MGJ2wUELM/kfS3dwoC+cEwkWqrD+5WulQiSYh7mFWv3rgdsT18SBy1tbqgxs xI1WALYIk9dZQWiT1xNxAVgf04nImk+NiE1a5xMoZTLCPoD+HYiacP8ZRiM86MF24z XWeZXhG31XRIfJs04AOjwgRN2riSjDSzdjD1UwDM= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107493] [13 Regression] Wrong code at -Os on x86_64-linux-gnu Date: Tue, 01 Nov 2022 15:25:26 +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: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work cf_reconfirmed_on cf_known_to_fail everconfirmed short_desc target_milestone bug_status 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=3D107493 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |12.1.0 Last reconfirmed| |2022-11-01 Known to fail| |13.0 Ever confirmed|0 |1 Summary|Wrong code at -Os on |[13 Regression] Wrong code |x86_64-linux-gnu |at -Os on x86_64-linux-gnu Target Milestone|--- |13.0 Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski --- sccp is broken: Estimating # of iterations of loop 1 Statement (exit)if (a_lsm.10_13 <=3D 0) is executed at most 0 (bounded by 0) + 1 times in loop 1. Induction variable (int) 65517 + 10 * iteration does not wrap in statement = _1 =3D a_lsm.10_13 + 2; in loop 1. Statement _1 =3D a_lsm.10_13 + 2; is executed at most 429490178 (bounded by 429490178) + 1 times in loop 1. Induction variable (int) 65525 + 10 * iteration does not wrap in statement = _4 =3D (int) _3; in loop 1. Statement _4 =3D (int) _3; is executed at most 1 (bounded by 1) + 1 times in loop 1. final value replacement: a_lsm.10_14 =3D PHI with expr: 65515 final stmt: a_lsm.10_14 =3D 65515; Confirmed.=