[llvm-commits] [llvm] r94507 - /llvm/trunk/lib/Support/ConstantRange.cpp

Dan Gohman gohman at apple.com
Mon Jan 25 20:13:16 PST 2010


Author: djg
Date: Mon Jan 25 22:13:15 2010
New Revision: 94507

URL: http://llvm.org/viewvc/llvm-project?rev=94507&view=rev
Log:
Add a comment about a missed opportunity.

Modified:
    llvm/trunk/lib/Support/ConstantRange.cpp

Modified: llvm/trunk/lib/Support/ConstantRange.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/ConstantRange.cpp?rev=94507&r1=94506&r2=94507&view=diff

==============================================================================
--- llvm/trunk/lib/Support/ConstantRange.cpp (original)
+++ llvm/trunk/lib/Support/ConstantRange.cpp Mon Jan 25 22:13:15 2010
@@ -540,6 +540,9 @@
 
 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())





More information about the llvm-commits mailing list