projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df6d5e0
)
Add a comment about a missed opportunity.
author
Dan Gohman
<gohman@apple.com>
Tue, 26 Jan 2010 04:13:15 +0000
(
04:13
+0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 26 Jan 2010 04:13:15 +0000
(
04:13
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94507
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/ConstantRange.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/ConstantRange.cpp
b/lib/Support/ConstantRange.cpp
index bfee730db14698bedd1c1004b2ebfef80e457c93..e9ddffc06ba2caf5f08634c5b6db39ccd07d50f4 100644
(file)
--- 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())