From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5FBA638AA264; Tue, 6 Dec 2022 09:27:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5FBA638AA264 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670318838; bh=kq64T72vxtlzLEjp36+OFdybHFYM7IrajC7JKgFX3us=; h=From:To:Subject:Date:In-Reply-To:References:From; b=P2X5QuzU6ujvf9kaj8U7knqKcIr9roTFETz3MsA/C75L35TEh1N2EbiEUDk63y2Vd 3sWCWdagCWK6G9XSv/Ibifx1wba24rJAgIkZplyKwKiXJmCavarlh4N1X+70cbq5fe vs5/GzAowIu0t2POyrk3Tqnf+Tz5wPXjzokYLXGY= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107972] backward propagation of finite property not performed Date: Tue, 06 Dec 2022 09:27:15 +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: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D107972 --- Comment #2 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a0ee2e522523b35ac810bd31c9769b9906f87953 commit r13-4502-ga0ee2e522523b35ac810bd31c9769b9906f87953 Author: Jakub Jelinek Date: Tue Dec 6 10:26:09 2022 +0100 range-op-float: Improve binary reverse operations On Mon, Dec 05, 2022 at 02:29:36PM +0100, Aldy Hernandez wrote: > > So like this for multiplication op1/2_range if it passes bootstrap/regtest? > > For division I'll need to go to a drawing board... > > Sure, looks good to me. Ulrich just filed PR107972, so in the light of that PR the following pa= tch attempts to do that differently. As for testcase, I've tried both attached testcases, but unfortunately = it seems that in neither of the cases we actually figure out that res range is finite (or for last function non-zero ordered). So there is further work needed on that. 2022-12-06 Jakub Jelinek PR tree-optimization/107972 * range-op-float.cc (frange_drop_infs): New function. (float_binary_op_range_finish): Add DIV_OP2 argument. If DIV_O= P2 is false and lhs is finite or if DIV_OP2 is true and lhs is non-ze= ro and not NAN, r must be finite too. (foperator_div::op2_range): Pass true to DIV_OP2 of float_binary_op_range_finish.=