summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LazyValueInfo.cpp
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
commit8afac043fbc59331a6f6d2b18706a7396301241d (patch)
treea874966c69d86e9f2cb9826a8142163af9ea3652 /llvm/lib/Analysis/LazyValueInfo.cpp
parentf99e7e664368ec8aa1490da2b29d67a502ad6192 (diff)
downloadbcm5719-llvm-8afac043fbc59331a6f6d2b18706a7396301241d.tar.gz
bcm5719-llvm-8afac043fbc59331a6f6d2b18706a7396301241d.zip
Add ConstantRange information to the debugging output.
llvm-svn: 110598
Diffstat (limited to 'llvm/lib/Analysis/LazyValueInfo.cpp')
-rw-r--r--llvm/lib/Analysis/LazyValueInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp
index 643fe63bc0d..e770ed42512 100644
--- a/llvm/lib/Analysis/LazyValueInfo.cpp
+++ b/llvm/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() << '>';
}
}
OpenPOWER on IntegriCloud