Long time ago there was a patch which added support in ValueTracking for
inferring known bits of a value from dominating conditional expressions:
https://reviews.llvm.org/D7708. But later it was removed due to the lack
of profitable examples.
But now ValueTracking can compute overflow for binary expressions and
it can be useful to infer more precise range from dominating conditions.
An example is the recently landed LICM optimization:
https://reviews.llvm.org/D148001.
Tests in the Transforms/LICM/hoist-add-sub.ll show the LICM benefits of
ValueTracking improving.
logicalor aswell?