OSDN Git Service
(root)
/
android-x86
/
external-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
643fe63
..
e770ed4
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() << '>';
}
}