From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101972 invoked by alias); 26 Oct 2015 11:37:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 101657 invoked by uid 48); 26 Oct 2015 11:37:16 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/68097] We should track ranges for floating-point values too Date: Mon, 26 Oct 2015 11:37:00 -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: 6.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc version everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg02107.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68097 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2015-10-26 CC| |rguenth at gcc dot gnu.org Version|unknown |6.0 Ever confirmed|0 |1 --- Comment #3 from Richard Biener --- Confirmed. Note the main part will be to make the FP "range info" available on SSA names. Other useful queries would include "cannot be Inf/NaN/signed zero". Note that transforms based on this (and also nonnegative!) need to be careful as there are no data dependences on conditions. Thus with if (x > 0.) foo (x); we may not optimize foo based on 'nonnegative' as code motion has no barrier that prevents it from hoisting it before the if. Yes, vectors could also be handled (and yes, please one "value range" per SSA name only). Likewise complex (integer) types.