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:
3dc7e49
)
Fix comment.
author
Nick Lewycky
<nicholas@mxc.ca>
Mon, 28 Feb 2011 09:18:11 +0000
(09:18 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Mon, 28 Feb 2011 09:18:11 +0000
(09:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126645
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/ValueTracking.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/ValueTracking.cpp
b/lib/Analysis/ValueTracking.cpp
index 7e208692ac2c5a5142e5c9fef08b0f146e621236..82f4f64fc65711b46f1ede7c6357275bf43f60cc 100644
(file)
--- a/
lib/Analysis/ValueTracking.cpp
+++ b/
lib/Analysis/ValueTracking.cpp
@@
-685,7
+685,7
@@
bool llvm::isPowerOfTwo(Value *V, const TargetData *TD, unsigned Depth) {
isPowerOfTwo(SI->getFalseValue(), TD, Depth);
// An exact divide or right shift can only shift off zero bits, so the result
- // is
non-zero only if the first operand is non-zer
o.
+ // is
a power of two only if the first operand is a power of tw
o.
if (match(V, m_Shr(m_Value(), m_Value())) ||
match(V, m_IDiv(m_Value(), m_Value()))) {
BinaryOperator *BO = cast<BinaryOperator>(V);