m_not should match vector not

llvm-svn: 37587
This commit is contained in:
Chris Lattner 2007-06-15 06:13:47 +00:00
parent 72e3958003
commit ce4d2dd644
1 changed files with 5 additions and 1 deletions

View File

@ -329,8 +329,12 @@ private:
bool matchIfNot(Value *LHS, Value *RHS) {
if (ConstantInt *CI = dyn_cast<ConstantInt>(RHS))
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);
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;
}
};