From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C81793858D39; Mon, 27 Mar 2023 10:59:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C81793858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679914794; bh=4MDKDNlHZymvJXDyz1u9nwmjn28SZbmVaynuiY75YP4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=j+echC+ss5pj4RnMNY5NEEMoW93DJ/vvnBKGSJb0F8NsWGAl1wcbCK2Y+f+UxSlZs JnuSjxB9PMPvgcfdaZFq3cebwDszlpD8fJDmhZvER2OtbWFzqb94XM3h7x5qpZqWD2 QBTG2ZxU8TqD9uUjVBzNx9d0EQGyW0Tckjnu6nO0= 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:59:54 +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 #20 from Jakub Jelinek --- (In reply to Richard Biener from comment #18) > Hmm, I guess if users enable FTZ we could instruct them to tell that to > the compiler, but requiring -funsafe-math-optimizations is quite a > difficult suggestion here. Maybe we can add a special -fftz flag for I think people rarely enable FTZ by hand, they enable it by linking in crtfastmath through linking with -Ofast/-ffast-math/-funsafe-math-optimizations. And, enabling FTZ is such an unsafe math optimization already, it violates = IEEE 754 to gain some extra performance.=