https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64992
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Well, if the value range for one MULT_EXPR operand is [0, 1], then it will never overflow, and is enough to know the other operand is ~[0, 0] and it can be optimized to the [0, 1] range operand.