projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fffb34
)
Add ConstantRange information to the debugging output.
author
Owen Anderson
<resistor@mac.com>
Mon, 9 Aug 2010 20:50:46 +0000
(20:50 +0000)
committer
Owen 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
patch
|
blob
|
history
diff --git
a/lib/Analysis/LazyValueInfo.cpp
b/lib/Analysis/LazyValueInfo.cpp
index 643fe63bc0dafe1afada71d801c8ef68efdfb06d..e770ed4251294b85d70dbd91cc7e4046ecf9c5f7 100644
(file)
--- 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() << '>';
}
}