mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
m_not should match vector not
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37587 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -329,8 +329,12 @@ private:
|
|||||||
bool matchIfNot(Value *LHS, Value *RHS) {
|
bool matchIfNot(Value *LHS, Value *RHS) {
|
||||||
if (ConstantInt *CI = dyn_cast<ConstantInt>(RHS))
|
if (ConstantInt *CI = dyn_cast<ConstantInt>(RHS))
|
||||||
return CI->isAllOnesValue() && L.match(LHS);
|
return CI->isAllOnesValue() && L.match(LHS);
|
||||||
else if (ConstantInt *CI = dyn_cast<ConstantInt>(LHS))
|
if (ConstantInt *CI = dyn_cast<ConstantInt>(LHS))
|
||||||
return CI->isAllOnesValue() && L.match(RHS);
|
return CI->isAllOnesValue() && L.match(RHS);
|
||||||
|
if (ConstantVector *CV = dyn_cast<ConstantVector>(RHS))
|
||||||
|
return CV->isAllOnesValue() && L.match(LHS);
|
||||||
|
if (ConstantVector *CV = dyn_cast<ConstantVector>(LHS))
|
||||||
|
return CV->isAllOnesValue() && L.match(RHS);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user