mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
remove some redundant parens.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86645 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3171f33bc2
commit
9f3ce36d7e
@ -63,8 +63,8 @@ Value *llvm::SimplifyAndInst(Value *Op0, Value *Op1,
|
||||
|
||||
// A & ~A = ~A & A = 0
|
||||
Value *A, *B;
|
||||
if ((match(Op0, m_Not(m_Value(A))) && A == Op1) ||
|
||||
(match(Op1, m_Not(m_Value(A))) && A == Op0))
|
||||
if (match(Op0, m_Not(m_Value(A)) && A == Op1) ||
|
||||
match(Op1, m_Not(m_Value(A)) && A == Op0))
|
||||
return Constant::getNullValue(Op0->getType());
|
||||
|
||||
// (A | ?) & A = A
|
||||
@ -123,8 +123,8 @@ Value *llvm::SimplifyOrInst(Value *Op0, Value *Op1,
|
||||
|
||||
// A | ~A = ~A | A = -1
|
||||
Value *A, *B;
|
||||
if ((match(Op0, m_Not(m_Value(A))) && A == Op1) ||
|
||||
(match(Op1, m_Not(m_Value(A))) && A == Op0))
|
||||
if (match(Op0, m_Not(m_Value(A)) && A == Op1) ||
|
||||
match(Op1, m_Not(m_Value(A)) && A == Op0))
|
||||
return Constant::getAllOnesValue(Op0->getType());
|
||||
|
||||
// (A & ?) | A = A
|
||||
|
Loading…
Reference in New Issue
Block a user