summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InstructionSimplify.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-10 01:56:04 +0000
committerChris Lattner <sabre@nondot.org>2009-11-10 01:56:04 +0000
commitee89d5a4d0dd5c0e2ad7cb282c394fde63893d8f (patch)
tree8058978f53d4ff08d052a7285035fbdf9bd36fa5 /llvm/lib/Analysis/InstructionSimplify.cpp
parentb8d77936289174a78d6fd37edeb4209a14af5104 (diff)
downloadbcm5719-llvm-ee89d5a4d0dd5c0e2ad7cb282c394fde63893d8f.tar.gz
bcm5719-llvm-ee89d5a4d0dd5c0e2ad7cb282c394fde63893d8f.zip
remove some redundant parens.
llvm-svn: 86645
Diffstat (limited to 'llvm/lib/Analysis/InstructionSimplify.cpp')
-rw-r--r--llvm/lib/Analysis/InstructionSimplify.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index 6953f16dc92..08fb8da4ff2 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -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
OpenPOWER on IntegriCloud