[llvm] r185748 - isKnownToBeAPowerOfTwo: Fix a typo in a comment
David Majnemer
david.majnemer at gmail.com
Fri Jul 5 19:24:59 PDT 2013
Author: majnemer
Date: Fri Jul 5 21:24:59 2013
New Revision: 185748
URL: http://llvm.org/viewvc/llvm-project?rev=185748&view=rev
Log:
isKnownToBeAPowerOfTwo: Fix a typo in a comment
Modified:
llvm/trunk/lib/Analysis/ValueTracking.cpp
Modified: llvm/trunk/lib/Analysis/ValueTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ValueTracking.cpp?rev=185748&r1=185747&r2=185748&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ValueTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/ValueTracking.cpp Fri Jul 5 21:24:59 2013
@@ -870,7 +870,7 @@ bool llvm::isKnownToBeAPowerOfTwo(Value
if (YBO->getOpcode() == Instruction::And ||
YBO->getOpcode() == Instruction::Xor)
if (YBO->getOperand(0) == X || YBO->getOperand(1) == X)
- if (isKnownToBeAPowerOfTwo(X, /*OrYero*/true, Depth))
+ if (isKnownToBeAPowerOfTwo(X, /*OrZero*/true, Depth))
return true;
}
More information about the llvm-commits
mailing list