mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
Missed these calls from the previous rename somehow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170094 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dbaa2376f7
commit
99c86c72b2
@ -2037,7 +2037,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
|
||||
// Turn x&~y == 0 into x&y != 0 if x is a power of 2.
|
||||
Value *X = 0, *Y = 0;
|
||||
if (match(Op0, m_And(m_Value(X), m_Not(m_Value(Y)))) &&
|
||||
match(Op1, m_Zero()) && isPowerOfTwo(X, TD)) {
|
||||
match(Op1, m_Zero()) && isKnownToBeAPowerOfTwo(X, TD)) {
|
||||
return new ICmpInst(ICmpInst::ICMP_NE,
|
||||
Builder->CreateAnd(X, Y),
|
||||
Op1);
|
||||
@ -2083,7 +2083,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
|
||||
// Turn x&~y != 0 into x&y == 0 if x is a power of 2.
|
||||
Value *X = 0, *Y = 0;
|
||||
if (match(Op0, m_And(m_Value(X), m_Not(m_Value(Y)))) &&
|
||||
match(Op1, m_Zero()) && isPowerOfTwo(X, TD)) {
|
||||
match(Op1, m_Zero()) && isKnownToBeAPowerOfTwo(X, TD)) {
|
||||
return new ICmpInst(ICmpInst::ICMP_EQ,
|
||||
Builder->CreateAnd(X, Y),
|
||||
Op1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user