From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 838DD3858C62; Fri, 7 Oct 2022 07:30:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 838DD3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665127819; bh=1GYaHdxXoOlUOqjE+FekdrptMTsS2t3Dpq+rsOLDctc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tjh2XlT8c8FoFL9BVCGdiBuKu4CibGL+eDyMCLa1YqBdrbNN7KG7XWIBDMaF5qfF4 pXId+yMFUYOAqdFUEL0v09cORqi0lpeTRL/NaaLyVZ7PWm5O3l45G23PKkf4h0a8fH OUQ2uh3/aBI6u9OxzVZnTURE6pRHsx9aKN53DBGA= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107176] [10/11/12/13 Regression] Wrong code at -Os on x86_64-pc-linux-gnu Date: Fri, 07 Oct 2022 07:30:19 +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: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 10.5 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=3D107176 --- Comment #2 from Richard Biener --- final value replacement: b_lsm.8_26 =3D PHI with expr: 1 final stmt: b_lsm.8_26 =3D 1; where (get_scalar_evolution (scalar =3D b_lsm.8_15) (scalar_evolution =3D {0, +, 1}_1)) (chrec_apply (varying_loop =3D 1) (chrec =3D {0, +, 1}_1) (x =3D 1) (res =3D 1)) and [local count: 955630225]: _1 =3D (unsigned int) b_lsm.8_15; _2 =3D _1 + 4294967206; # RANGE [irange] long int [0, 4294967295] NONZERO 0xffffffff _12 =3D (long int) _2; # RANGE [irange] long int [91, 4294967386] NONZERO 0x1ffffffff _3 =3D _12 + 91; [local count: 1073741824]: # b_lsm.8_15 =3D PHI <0(2), _3(3)>=