From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ED6733858D20; Sun, 15 Oct 2023 02:02:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED6733858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697335367; bh=8a3Zhv9e4664V6Nr4IzIi0lV7YtMs/np8Q5L6TpSxeE=; h=From:To:Subject:Date:From; b=tOSkzQAdLNauOSyIXD0B3F73HLcB2Oj+jSRX0QbZB8E1FqrVrpaVPmHOc1OwiNyN6 bW5tRIowCgadn0Kn8rRI27EsS7BpZEzLmImmwRhm907VpqzbX1ISQw/yvZoV0MsX9L GRQ17mvm0c2HKwpxUZzxWTtYdPxkG/0Ry6n90fqs= From: "141242068 at smail dot nju.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111820] New: GCC: 14: hangs with a simple while loop Date: Sun, 15 Oct 2023 02:02:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: 141242068 at smail dot nju.edu.cn X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 Bug ID: 111820 Summary: GCC: 14: hangs with a simple while loop Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: 141242068 at smail dot nju.edu.cn Target Milestone: --- Compiler Explorer: https://godbolt.org/z/ezdG5GGd8 When compile below program with option `-O3 -fno-tree-vrp`, GCC consumes up= to 46 seconds to finish: ``` int r; int r_0; void f (void) { int n =3D 0; while (-- n) { r_0 +=3D r ; r +=3D r; r +=3D r ; r +=3D r ; r >=3D r ; r +=3D r ; } } ```=