It has always irritated me that we don't have TYPE_MIN_VALUE and TYPE_MAX_VALUE for floats (and for pointers for that matter). This means, we have to recalculate it ad-nauseum in vrp_val_min and vrp_val_max. I know we have dconstinf and dconstninf for floats, which we can just wrap around a TREE_REAL_CST, but it still seems like we should be more consistent here. If we know the endpoint for a type, we should cache it in it. Furthermore, just the way we're chopping off NANs in the frange::set() routine, we should be able to chop off things outside the min/max representable range, at least for -ffinite-math-only. For example, the endpoints to VR_VARYING for a float in -ffinite-math-only should be real_{min/max}_representable(), which REAL_VALUE_TYPE already provides. I am testing a patch to do this, but am unhappy that we have recalculate things. Is there a reason we can't store these in the type? I tried the naive attached approach, but I quickly ran into LTO woes: FAIL: gcc.c-torture/execute/ieee/20001122-1.c compilation, -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error: 'verify_type' failed) $ ./xgcc -B./ a.c -O2 -flto -w lto1: error: type variant differs by TYPE_MAX_VALUE So I clearly don't know what I'm doing. Would folks be ok with filling TYPE_MIN_VALUE and friends for floats, and if so, could someone give me a hand here? What am I missing? Thanks. Aldy p.s. Now that we're onto this subject, in the distant future, I'd actually like to store a vrange in the tree type. I mean, they are first class citizens in the SSA name now, and we have a typeless way of storing ranges in GC space. Anywho, that's for the future, cause I like the pain... just wanted to gauge the temperature on that one as well.