diff options
Diffstat (limited to 'llvm/lib/Support/ConstantRange.cpp')
| -rw-r--r-- | llvm/lib/Support/ConstantRange.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Support/ConstantRange.cpp b/llvm/lib/Support/ConstantRange.cpp index e9ddffc..2746f7a 100644 --- a/llvm/lib/Support/ConstantRange.cpp +++ b/llvm/lib/Support/ConstantRange.cpp @@ -540,8 +540,10 @@ ConstantRange::add(const ConstantRange &Other) const {  ConstantRange  ConstantRange::multiply(const ConstantRange &Other) const { -  // TODO: If either operand is a single element, round the result min anx -  // max value to the appropriate multiple of that element. +  // 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);  | 
