summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-08-09 20:50:46 +0000
committerOwen Anderson <resistor@mac.com>2010-08-09 20:50:46 +0000
commit2f3ffb80fa19cea89e507ad14966ce511012f308 (patch)
treef44e4103a9f884308f409e17260291fc4eaef818 /lib
parent4fffb345ed20bd144a31c1c1724cffb6f519b814 (diff)
downloadllvm-2f3ffb80fa19cea89e507ad14966ce511012f308.tar.gz
llvm-2f3ffb80fa19cea89e507ad14966ce511012f308.tar.bz2
llvm-2f3ffb80fa19cea89e507ad14966ce511012f308.tar.xz
Add ConstantRange information to the debugging output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/LazyValueInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/LazyValueInfo.cpp b/lib/Analysis/LazyValueInfo.cpp
index 643fe63bc0..e770ed4251 100644
--- a/lib/Analysis/LazyValueInfo.cpp
+++ b/lib/Analysis/LazyValueInfo.cpp
@@ -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() << '>';
}
}