From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8E4DC3858281; Mon, 29 Jan 2024 17:53:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E4DC3858281 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706550817; bh=eJ44mxsX3RsX5b0+pETWLui9H77mD8ga0uUX9bvDAI0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=shbp+ME6JxMx6I3zL0b/YTd7iJcDI2mvNpzzGPSc1mGibGgXDuqOhyKq1X5sJYq3H QoKYg4ROurbyytC23OGo+0k+2XReXxlQFXIzADEgCjdSGqgU2pyim0s5iVhdMVEXTA qvCZoXC1GsI1wpDry/W/vW8lBMoH/UwAHW3eI9yU= From: "ostash at ostash dot kiev.ua" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113662] [13/14 Regression] Wrong code for std::sort with fancy pointer Date: Mon, 29 Jan 2024 17:53:37 +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.1.0 X-Bugzilla-Keywords: needs-reduction, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ostash at ostash dot kiev.ua 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: 13.3 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=3D113662 --- Comment #2 from Viktor Ostashevskyi --- Adding --param=3Dranger-recompute-depth=3D1 or --param=3Dranger-recompute-d= epth=3D2 also fixes the issue. Higher values behave wrongly.=