forked from OSchip/llvm-project
parent
a2476ab7c9
commit
9bb6c392e3
|
@ -4524,11 +4524,8 @@ bool llvm::isKnownNegation(const Value *X, const Value *Y) {
|
|||
|
||||
// X = sub (A, B), Y = sub (B, A)
|
||||
Value *A, *B;
|
||||
if (match(X, m_Sub(m_Value(A), m_Value(B))) &&
|
||||
match(Y, m_Sub(m_Specific(B), m_Specific(A))))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return match(X, m_Sub(m_Value(A), m_Value(B))) &&
|
||||
match(Y, m_Sub(m_Specific(B), m_Specific(A)));
|
||||
}
|
||||
|
||||
static SelectPatternResult matchSelectPattern(CmpInst::Predicate Pred,
|
||||
|
|
Loading…
Reference in New Issue