mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-08 13:36:26 +00:00
[InstCombine] Add two FIXMEs for bad single use checks. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
66f76f7576
commit
240b649837
@ -2111,12 +2111,16 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
|
||||
}
|
||||
|
||||
// (A ^ B) | ((B ^ C) ^ A) -> (A ^ B) | C
|
||||
// FIXME: The two hasOneUse calls here are the same call, maybe we were
|
||||
// supposed to check Op1->operand(0)?
|
||||
if (match(Op0, m_Xor(m_Value(A), m_Value(B))))
|
||||
if (match(Op1, m_Xor(m_Xor(m_Specific(B), m_Value(C)), m_Specific(A))))
|
||||
if (Op1->hasOneUse() || cast<BinaryOperator>(Op1)->hasOneUse())
|
||||
return BinaryOperator::CreateOr(Op0, C);
|
||||
|
||||
// ((A ^ C) ^ B) | (B ^ A) -> (B ^ A) | C
|
||||
// FIXME: The two hasOneUse calls here are the same call, maybe we were
|
||||
// supposed to check Op0->operand(0)?
|
||||
if (match(Op0, m_Xor(m_Xor(m_Value(A), m_Value(C)), m_Value(B))))
|
||||
if (match(Op1, m_Xor(m_Specific(B), m_Specific(A))))
|
||||
if (Op0->hasOneUse() || cast<BinaryOperator>(Op0)->hasOneUse())
|
||||
|
Loading…
x
Reference in New Issue
Block a user