diff options
author | Owen Anderson <resistor@mac.com> | 2010-08-09 20:50:46 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-08-09 20:50:46 +0000 |
commit | 8afac043fbc59331a6f6d2b18706a7396301241d (patch) | |
tree | a874966c69d86e9f2cb9826a8142163af9ea3652 /llvm/lib/Analysis/LazyValueInfo.cpp | |
parent | f99e7e664368ec8aa1490da2b29d67a502ad6192 (diff) | |
download | bcm5719-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.cpp | 3 |
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() << '>'; } } |