diff options
author | Dan Gohman <gohman@apple.com> | 2010-01-26 04:13:15 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-01-26 04:13:15 +0000 |
commit | dc8f5e684c2f4927dce14ff514fe9ecf1f9aa031 (patch) | |
tree | 7840bf74b8e6f497950de56dfb57ca293e8f933d /lib | |
parent | cae6c2a16242535c0d113583c7c6ee5f580c4004 (diff) | |
download | external_llvm-dc8f5e684c2f4927dce14ff514fe9ecf1f9aa031.zip external_llvm-dc8f5e684c2f4927dce14ff514fe9ecf1f9aa031.tar.gz external_llvm-dc8f5e684c2f4927dce14ff514fe9ecf1f9aa031.tar.bz2 |
Add a comment about a missed opportunity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Support/ConstantRange.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/ConstantRange.cpp b/lib/Support/ConstantRange.cpp index bfee730..e9ddffc 100644 --- a/lib/Support/ConstantRange.cpp +++ b/lib/Support/ConstantRange.cpp @@ -540,6 +540,9 @@ 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. + if (isEmptySet() || Other.isEmptySet()) return ConstantRange(getBitWidth(), /*isFullSet=*/false); if (isFullSet() || Other.isFullSet()) |