From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 57CFE386F028; Tue, 21 Apr 2020 11:02:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57CFE386F028 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587466954; bh=uoZws14ho1Vma5/i2HYgKmuIBfAwirgt821ePr7LQO0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=b4xa/eQBLDvFQPmSDYZ3O8w92lZyHPzuT2zyqqfiNqvp5j7b8DdvXeuXgTMLC1RlB kilVu3mcdtFDdRRY9JWjJIa8MTrDsZ7ykk5XGJm/lhjOXMDQdKNbINa7KTcwX7IfJ+ 9gSpzAKtAT/IIVajEd7B7acoPrV0JBoL0zdDGFlU= From: "z.zhanghaijian at huawei dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/94665] missed minmax optimization opportunity for if/else structure. Date: Tue, 21 Apr 2020 11:02:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: z.zhanghaijian at huawei dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: segher 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2020 11:02:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94665 --- Comment #14 from z.zhanghaijian at huawei dot com --- (In reply to Segher Boessenkool from comment #11) > Confirmed the comment 4 problem, on all archs. This is a very old bug. There are two ways to fix this bug: 1. Change flag_unsafe_math_optimizations to flag_finite_math_only, so that fmaxnm/fminnm can be generated under -ffinite-math-only; 2. Delete this optimization. Which one do you prefer?=