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 | 5325efc5afff641958f10401d5ec93dcc9882bc5 (patch) | |
tree | 21934219cc9fe477c911e98c72f673c695b25a70 /llvm/lib/Support/ConstantRange.cpp | |
parent | 837ada7692a87a3a561172f987a69413faf07c75 (diff) | |
download | bcm5719-llvm-5325efc5afff641958f10401d5ec93dcc9882bc5.tar.gz bcm5719-llvm-5325efc5afff641958f10401d5ec93dcc9882bc5.zip |
Add a comment about a missed opportunity.
llvm-svn: 94507
Diffstat (limited to 'llvm/lib/Support/ConstantRange.cpp')
-rw-r--r-- | llvm/lib/Support/ConstantRange.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/ConstantRange.cpp b/llvm/lib/Support/ConstantRange.cpp index bfee730db14..e9ddffc06ba 100644 --- a/llvm/lib/Support/ConstantRange.cpp +++ b/llvm/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()) |