OSDN Git Service

Add ConstantRange information to the debugging output.
authorOwen Anderson <resistor@mac.com>
Mon, 9 Aug 2010 20:50:46 +0000 (20:50 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 9 Aug 2010 20:50:46 +0000 (20:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110598 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LazyValueInfo.cpp

index 643fe63..e770ed4 100644 (file)
@@ -247,6 +247,9 @@ raw_ostream &operator<<(raw_ostream &OS, const LVILatticeVal &Val) {
 
   if (Val.isNotConstant())
     return OS << "notconstant<" << *Val.getNotConstant() << '>';
+  else if (Val.isConstantRange())
+    return OS << "constantrange<" << Val.getConstantRange().getLower() << ", "
+              << Val.getConstantRange().getUpper() << '>';
   return OS << "constant<" << *Val.getConstant() << '>';
 }
 }