From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 32E953858D39; Mon, 27 Mar 2023 10:56:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 32E953858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679914592; bh=UedM21+VyaVA1oOIje9GAsC1KAZiyIztluP9WTHU35w=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fIDa4YZil3AvOkvtcBa6xJMjB3j21os6ag42MoEoGMP4WU4rZMeL0onvb1TPB8HlQ tJBOaoqNtWEuHvnigngUJf4p4KFhlKs7ymd+K1y4MuIIiI98drdVSifxbs+6a7r6QI yhjUxEb8CoI4tJhokB9SFNZ81/G6LXT/syQIgDKg= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons Date: Mon, 27 Mar 2023 10:56:31 +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: jakub 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: 13.0 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=3D109154 --- Comment #19 from Jakub Jelinek --- Though, we likely use set also when just copying ranges and the like, so we= 'd probably need to move the flush_denormals_to_zero calls from set to somewhere else, perhaps range_operator_float::fold_range? As for the normal binary/unary ops doing flush to zero always, the problem isn't just for comparisons but e.g. also for divisions where it is essentia= l if the divisor is denormal but not zero vs. when it might be or is zero.=