mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126645 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3dc7e49c70
commit
da834093b7
@ -685,7 +685,7 @@ bool llvm::isPowerOfTwo(Value *V, const TargetData *TD, unsigned Depth) {
|
|||||||
isPowerOfTwo(SI->getFalseValue(), TD, Depth);
|
isPowerOfTwo(SI->getFalseValue(), TD, Depth);
|
||||||
|
|
||||||
// An exact divide or right shift can only shift off zero bits, so the result
|
// 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-zero.
|
// is a power of two only if the first operand is a power of two.
|
||||||
if (match(V, m_Shr(m_Value(), m_Value())) ||
|
if (match(V, m_Shr(m_Value(), m_Value())) ||
|
||||||
match(V, m_IDiv(m_Value(), m_Value()))) {
|
match(V, m_IDiv(m_Value(), m_Value()))) {
|
||||||
BinaryOperator *BO = cast<BinaryOperator>(V);
|
BinaryOperator *BO = cast<BinaryOperator>(V);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user