Lines Matching refs:Op0
1775 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitICmpInst() local
1780 if (getComplexity(Op0) < getComplexity(Op1)) { in visitICmpInst()
1782 std::swap(Op0, Op1); in visitICmpInst()
1786 if (Value *V = SimplifyICmpInst(I.getPredicate(), Op0, Op1, TD)) in visitICmpInst()
1789 Type *Ty = Op0->getType(); in visitICmpInst()
1796 Value *Xor = Builder->CreateXor(Op0, Op1, I.getName()+"tmp"); in visitICmpInst()
1800 return BinaryOperator::CreateXor(Op0, Op1); in visitICmpInst()
1803 std::swap(Op0, Op1); // Change icmp ugt -> icmp ult in visitICmpInst()
1806 Value *Not = Builder->CreateNot(Op0, I.getName()+"tmp"); in visitICmpInst()
1810 std::swap(Op0, Op1); // Change icmp sgt -> icmp slt in visitICmpInst()
1814 return BinaryOperator::CreateAnd(Not, Op0); in visitICmpInst()
1817 std::swap(Op0, Op1); // Change icmp uge -> icmp ule in visitICmpInst()
1820 Value *Not = Builder->CreateNot(Op0, I.getName()+"tmp"); in visitICmpInst()
1824 std::swap(Op0, Op1); // Change icmp sge -> icmp sle in visitICmpInst()
1828 return BinaryOperator::CreateOr(Not, Op0); in visitICmpInst()
1860 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst()
1867 match(Op0, m_Sub(m_Value(A), m_Value(B)))) { in visitICmpInst()
1880 return new ICmpInst(ICmpInst::ICMP_ULT, Op0, in visitICmpInst()
1884 return new ICmpInst(ICmpInst::ICMP_SLT, Op0, in visitICmpInst()
1888 return new ICmpInst(ICmpInst::ICMP_UGT, Op0, in visitICmpInst()
1892 return new ICmpInst(ICmpInst::ICMP_SGT, Op0, in visitICmpInst()
1937 if (!isa<Constant>(Op0) && Op0Min == Op0Max) in visitICmpInst()
1939 ConstantInt::get(Op0->getType(), Op0Min), Op1); in visitICmpInst()
1941 return new ICmpInst(I.getPredicate(), Op0, in visitICmpInst()
1960 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
1962 LHS = Op0; in visitICmpInst()
1997 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
1999 LHS = Op0; in visitICmpInst()
2028 return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1); in visitICmpInst()
2031 return new ICmpInst(ICmpInst::ICMP_EQ, Op0, in visitICmpInst()
2036 return new ICmpInst(ICmpInst::ICMP_SGT, Op0, in visitICmpInst()
2037 Constant::getAllOnesValue(Op0->getType())); in visitICmpInst()
2047 return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1); in visitICmpInst()
2050 return new ICmpInst(ICmpInst::ICMP_EQ, Op0, in visitICmpInst()
2055 return new ICmpInst(ICmpInst::ICMP_SLT, Op0, in visitICmpInst()
2056 Constant::getNullValue(Op0->getType())); in visitICmpInst()
2065 return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1); in visitICmpInst()
2068 return new ICmpInst(ICmpInst::ICMP_EQ, Op0, in visitICmpInst()
2079 return new ICmpInst(ICmpInst::ICMP_NE, Op0, Op1); in visitICmpInst()
2082 return new ICmpInst(ICmpInst::ICMP_EQ, Op0, in visitICmpInst()
2121 return new ICmpInst(I.getUnsignedPredicate(), Op0, Op1); in visitICmpInst()
2133 if ((SI->getOperand(1) == Op0 && SI->getOperand(2) == Op1) || in visitICmpInst()
2134 (SI->getOperand(2) == Op0 && SI->getOperand(1) == Op1)) in visitICmpInst()
2143 if (Instruction *LHSI = dyn_cast<Instruction>(Op0)) in visitICmpInst()
2150 if (Instruction *LHSI = dyn_cast<Instruction>(Op0)) in visitICmpInst()
2218 if (GEPOperator *GEP = dyn_cast<GEPOperator>(Op0)) in visitICmpInst()
2222 if (Instruction *NI = FoldGEPICmp(GEP, Op0, in visitICmpInst()
2229 if (BitCastInst *CI = dyn_cast<BitCastInst>(Op0)) { in visitICmpInst()
2230 if (Op0->getType()->isPointerTy() && in visitICmpInst()
2234 Op0 = CI->getOperand(0); in visitICmpInst()
2242 if (Op0->getType() != Op1->getType()) { in visitICmpInst()
2244 Op1 = ConstantExpr::getBitCast(Op1C, Op0->getType()); in visitICmpInst()
2247 Op1 = Builder->CreateBitCast(Op1, Op0->getType()); in visitICmpInst()
2250 return new ICmpInst(I.getPredicate(), Op0, Op1); in visitICmpInst()
2254 if (isa<CastInst>(Op0)) { in visitICmpInst()
2267 BinaryOperator *BO0 = dyn_cast<BinaryOperator>(Op0); in visitICmpInst()
2295 if ((C == Op0 || D == Op0) && NoOp1WrapProblem) in visitICmpInst()
2296 return new ICmpInst(Pred, Constant::getNullValue(Op0->getType()), in visitICmpInst()
2297 C == Op0 ? D : C); in visitICmpInst()
2323 if (C == Op0 && NoOp1WrapProblem) in visitICmpInst()
2324 return new ICmpInst(Pred, D, Constant::getNullValue(Op0->getType())); in visitICmpInst()
2345 Op0 == BO1->getOperand(1)) in visitICmpInst()
2445 if (match(Op0, m_Not(m_Value(A)))) { in visitICmpInst()
2455 match(Op0, m_Add(m_Value(A), m_Value(B))) && in visitICmpInst()
2457 if (Instruction *R = ProcessUAddIdiom(I, Op0, *this)) in visitICmpInst()
2464 (Op0 == A || Op0 == B)) in visitICmpInst()
2472 if (match(Op0, m_Xor(m_Value(A), m_Value(B)))) { in visitICmpInst()
2499 (A == Op0 || B == Op0)) { in visitICmpInst()
2501 Value *OtherVal = A == Op0 ? B : A; in visitICmpInst()
2507 if (match(Op0, m_OneUse(m_And(m_Value(A), m_Value(B)))) && in visitICmpInst()
2534 if (Op0->hasOneUse() && in visitICmpInst()
2535 match(Op0, m_Trunc(m_OneUse(m_LShr(m_Value(A), in visitICmpInst()
2545 APInt::getLowBitsSet(ASize, Op0->getType()->getPrimitiveSizeInBits()); in visitICmpInst()
2560 if (match(Op0, m_Add(m_Value(X), m_ConstantInt(Cst))) && Op1 == X) in visitICmpInst()
2561 return FoldICmpAddOpCst(I, X, Cst, I.getPredicate(), Op0); in visitICmpInst()
2564 if (match(Op1, m_Add(m_Value(X), m_ConstantInt(Cst))) && Op0 == X) in visitICmpInst()
2778 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitFCmpInst() local
2780 if (Value *V = SimplifyFCmpInst(I.getPredicate(), Op0, Op1, TD)) in visitFCmpInst()
2784 if (Op0 == Op1) { in visitFCmpInst()
2793 I.setOperand(1, Constant::getNullValue(Op0->getType())); in visitFCmpInst()
2802 I.setOperand(1, Constant::getNullValue(Op0->getType())); in visitFCmpInst()
2809 if (Instruction *LHSI = dyn_cast<Instruction>(Op0)) in visitFCmpInst()
2908 if (match(Op0, m_FNeg(m_Value(X))) && match(Op1, m_FNeg(m_Value(Y)))) in visitFCmpInst()
2912 if (FPExtInst *LHSExt = dyn_cast<FPExtInst>(Op0)) in visitFCmpInst()