Remove extraneous ';'.
[oota-llvm.git] / lib / Analysis / InstructionSimplify.cpp
index 28400b08b1cf07887bd560b4e21465baa52036d5..16a9a0481c5eb25077f1836589a1a0957704c0aa 100644 (file)
@@ -47,7 +47,7 @@ struct Query {
   const DominatorTree *DT;
 
   Query(const TargetData *td, const TargetLibraryInfo *tli,
-        const DominatorTree *dt) : TD(td), TLI(tli), DT(dt) {};
+        const DominatorTree *dt) : TD(td), TLI(tli), DT(dt) {}
 };
 
 static Value *SimplifyAndInst(Value *, Value *, const Query &, unsigned);
@@ -1370,21 +1370,6 @@ static Value *SimplifyAndInst(Value *Op0, Value *Op1, const Query &Q,
       return Op1;
   }
 
-  unsigned Bitwidth = Op1->getType()->getScalarSizeInBits();
-  APInt DemandedMask = APInt::getAllOnesValue(Bitwidth);
-  APInt KnownZero0 = APInt::getNullValue(Bitwidth);
-  APInt KnownOne0 = APInt::getNullValue(Bitwidth);
-  ComputeMaskedBits(Op0, DemandedMask, KnownZero0, KnownOne0);
-  APInt KnownZero1 = APInt::getNullValue(Bitwidth);
-  APInt KnownOne1 = APInt::getNullValue(Bitwidth);
-  ComputeMaskedBits(Op1, DemandedMask, KnownZero1, KnownOne1);
-
-  if ((KnownZero0 | KnownOne1).isAllOnesValue())
-    return Op0;
-
-  if ((KnownZero1 | KnownOne0).isAllOnesValue())
-    return Op1;
-
   // Try some generic simplifications for associative operations.
   if (Value *V = SimplifyAssociativeBinOp(Instruction::And, Op0, Op1, Q,
                                           MaxRecurse))