add some triple for minix, patch by Kees van Reeuwijk from PR7582
[oota-llvm.git] / lib / Support / ConstantRange.cpp
index bfee730db14698bedd1c1004b2ebfef80e457c93..2746f7aaaa5e81328e1edc279b8e686b8b45e9c2 100644 (file)
@@ -540,6 +540,11 @@ ConstantRange::add(const ConstantRange &Other) const {
 
 ConstantRange
 ConstantRange::multiply(const ConstantRange &Other) const {
+  // TODO: If either operand is a single element and the multiply is known to
+  // be non-wrapping, round the result min and max value to the appropriate
+  // multiple of that element. If wrapping is possible, at least adjust the
+  // range according to the greatest power-of-two factor of the single element.
+
   if (isEmptySet() || Other.isEmptySet())
     return ConstantRange(getBitWidth(), /*isFullSet=*/false);
   if (isFullSet() || Other.isFullSet())