From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C9603858D35; Mon, 27 Feb 2023 10:07:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C9603858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677492462; bh=OcKF0sf78+j/Kq2sAjWWxgSwrfp11PoI8YYz3T1/DkM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ic2NOniS7etCfMFFoj9dreWNUIrsqqy8JFEG2pXaArcDUyVqGvu/FaH/8qVuz/pAa F30VEILhcz9iMf3TgSgVX7dDQFsWEbIqQS+YhUjTiXr2FnnxFf853mTO1SDYF8zOPe eGNAIuhVuix9fL9RrsovLIZDxbp1XY3mJnNsbHsg= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107569] [13 Regression] Failure to optimize std::isfinite since r13-3596 Date: Mon, 27 Feb 2023 10:07:38 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_known_to_work everconfirmed cf_reconfirmed_on 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=3D107569 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |12.2.0 Ever confirmed|0 |1 Last reconfirmed| |2023-02-27 --- Comment #44 from Richard Biener --- I can confirm that foo() is still not optimized but we now optimize bar() in VRP1. VRP1 sees bool foo (double x) { bool _3; double _4; bool _5; [local count: 1073741824]: _4 =3D ABS_EXPR ; _3 =3D _4 u> 1.79769313486231570814527423731704356798070567525844996599e+= 308; _5 =3D ~_3; if (_4 u> 1.79769313486231570814527423731704356798070567525844996599e+308) goto ; [0.00%] else goto ; [100.00%] [count: 0]: __builtin_unreachable (); [local count: 1073741824]: return _5;=