[Bug tree-optimization/95731] Faiilure to optimize a >= 0 && b >= 0 to (a | b) >= 0
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 18 08:41:19 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95731
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |easyhack,
| |missed-optimization
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. Two pieces depending on SHORT_CIRCUIT_...
maybe_fold_and_comparisons for ifcombine and a match.pd pattern for
_1 = a_3(D) >= 0;
_2 = b_4(D) >= 0;
_5 = _1 & _2;
that should also make it work through maybe_fold_and_comparisons. We have
something like this in fold-const.c btw.
More information about the Gcc-bugs
mailing list