mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Rename isPowerOfTwo to isKnownToBeAPowerOfTwo.
In a previous thread it was pointed out that isPowerOfTwo is not a very precise name since it can return false for powers of two if it is unable to show that they are powers of two. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170093 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1457,9 +1457,9 @@ static Value *SimplifyAndInst(Value *Op0, Value *Op1, const Query &Q,
|
||||
// A & (-A) = A if A is a power of two or zero.
|
||||
if (match(Op0, m_Neg(m_Specific(Op1))) ||
|
||||
match(Op1, m_Neg(m_Specific(Op0)))) {
|
||||
if (isPowerOfTwo(Op0, /*OrZero*/true))
|
||||
if (isKnownToBeAPowerOfTwo(Op0, /*OrZero*/true))
|
||||
return Op0;
|
||||
if (isPowerOfTwo(Op1, /*OrZero*/true))
|
||||
if (isKnownToBeAPowerOfTwo(Op1, /*OrZero*/true))
|
||||
return Op1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user