From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A8F833858D38; Wed, 9 Nov 2022 22:25:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A8F833858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668032745; bh=rv7uRfGTVp3YgF89qsnfkuKNTtPodBR3x+xzIw0BAoA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VbrSLPP+j4uTwtSgpjvIXDxP6CKRavbalaL3dRgxbhvctywxhb9/MAH5IcdouFnoj OW2j7iQVFbVH/1YDInbl/Bq0mZ2d++4sPi1CMq+VqaD0+04rkQ0kicZOJy7xmoS0GM q11DVHFxkYfpV7/UaFs10g2ELoxUPrLoFK6qoH0o= From: "amacleod at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107591] range-op{,-float}.cc for x * x Date: Wed, 09 Nov 2022 22:25:45 +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: amacleod at redhat dot com 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: --- 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=3D107591 --- Comment #16 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #15) > I've screwed up the real_value_negate calls, they need to assign the resu= lt. >=20 > Anyway, yet another option would be for cdce to ask the ranger if the sqrt > argument can be smaller than -0.0 (and only if it can, emit the compariso= n). > Then we don't need to deal with removing the comparison again. > Of course, such removals might be still useful for user code. even checking the global range from cdce at this point should show that its= >=3D -0.0...=