Lines Matching defs:V

129 static bool isSameCompare(Value *V, CmpInst::Predicate Pred, Value *LHS,  in isSameCompare()
194 if (Value *V = simplifyAndInst(Cond, TCmp, Q, MaxRecurse)) in handleOtherCmpSelSimplifications() local
199 if (Value *V = simplifyOrInst(Cond, FCmp, Q, MaxRecurse)) in handleOtherCmpSelSimplifications() local
204 if (Value *V = simplifyXorInst( in handleOtherCmpSelSimplifications() local
211 static bool valueDominatesPHI(Value *V, PHINode *P, const DominatorTree *DT) { in valueDominatesPHI()
239 static Value *expandBinOp(Instruction::BinaryOps Opcode, Value *V, in expandBinOp()
282 if (Value *V = expandBinOp(Opcode, L, R, OpcodeToExpand, Q, MaxRecurse)) in expandCommutativeBinOp() local
284 if (Value *V = expandBinOp(Opcode, R, L, OpcodeToExpand, Q, MaxRecurse)) in expandCommutativeBinOp() local
311 if (Value *V = simplifyBinOp(Opcode, B, C, Q, MaxRecurse)) { in simplifyAssociativeBinOp() local
331 if (Value *V = simplifyBinOp(Opcode, A, B, Q, MaxRecurse)) { in simplifyAssociativeBinOp() local
355 if (Value *V = simplifyBinOp(Opcode, C, A, Q, MaxRecurse)) { in simplifyAssociativeBinOp() local
375 if (Value *V = simplifyBinOp(Opcode, C, A, Q, MaxRecurse)) { in simplifyAssociativeBinOp() local
546 Value *V = PI == LHS ? simplifyBinOp(Opcode, Incoming, RHS, Q, MaxRecurse) in threadBinOpOverPHI() local
591 Value *V = simplifyCmpInst(Pred, Incoming, RHS, Q.getWithInstruction(InTI), in threadCmpOverPHI() local
678 if (Value *V = simplifyXorInst(Op0, Op1, Q, MaxRecurse - 1)) in simplifyAddInst() local
682 if (Value *V = in simplifyAddInst() local
712 static APInt stripAndComputeConstantOffsets(const DataLayout &DL, Value *&V, in stripAndComputeConstantOffsets()
829 if (Value *V = simplifyBinOp(Instruction::Sub, Y, Z, Q, MaxRecurse - 1)) in simplifySubInst() local
837 if (Value *V = simplifyBinOp(Instruction::Sub, X, Z, Q, MaxRecurse - 1)) in simplifySubInst() local
851 if (Value *V = simplifyBinOp(Instruction::Sub, X, Y, Q, MaxRecurse - 1)) in simplifySubInst() local
859 if (Value *V = simplifyBinOp(Instruction::Sub, X, Z, Q, MaxRecurse - 1)) in simplifySubInst() local
873 if (Value *V = simplifyBinOp(Instruction::Sub, Z, X, Q, MaxRecurse - 1)) in simplifySubInst() local
886 if (Value *V = simplifyBinOp(Instruction::Sub, X, Y, Q, MaxRecurse - 1)) in simplifySubInst() local
900 if (Value *V = simplifyXorInst(Op0, Op1, Q, MaxRecurse - 1)) in simplifySubInst() local
912 if (Value *V = simplifyByDomEq(Instruction::Sub, Op0, Op1, Q, MaxRecurse)) in simplifySubInst() local
959 if (Value *V = simplifyAndInst(Op0, Op1, Q, MaxRecurse - 1)) in simplifyMulInst() local
964 if (Value *V = in simplifyMulInst() local
969 if (Value *V = expandCommutativeBinOp(Instruction::Mul, Op0, Op1, in simplifyMulInst() local
976 if (Value *V = in simplifyMulInst() local
983 if (Value *V = in simplifyMulInst() local
1074 if (Value *V = simplifyByDomEq(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyDivRem() local
1085 Value *V = simplifyICmpInst(Pred, LHS, RHS, Q, MaxRecurse); in isICmpTrue() local
1159 if (Value *V = simplifyDivRem(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyDiv() local
1192 if (Value *V = threadBinOpOverSelect(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyDiv() local
1198 if (Value *V = threadBinOpOverPHI(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyDiv() local
1213 if (Value *V = simplifyDivRem(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyRem() local
1234 if (Value *V = threadBinOpOverSelect(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyRem() local
1240 if (Value *V = threadBinOpOverPHI(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyRem() local
1371 if (Value *V = threadBinOpOverSelect(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyShift() local
1377 if (Value *V = threadBinOpOverPHI(Opcode, Op0, Op1, Q, MaxRecurse)) in simplifyShift() local
1415 if (Value *V = in simplifyRightShift() local
1444 if (Value *V = in simplifyShlInst() local
1477 if (Value *V = simplifyRightShift(Instruction::LShr, Op0, Op1, IsExact, Q, in simplifyLShrInst() local
1514 if (Value *V = simplifyRightShift(Instruction::AShr, Op0, Op1, IsExact, Q, in simplifyAShrInst() local
1735 Value *V; in simplifyAndOfICmpsWithAdd() local
1892 Value *V; in simplifyOrOfICmpsWithAdd() local
2012 Value *V = nullptr; in simplifyAndOrOfCmps() local
2109 if (Value *V = simplifyLogicOfAddSub(Op0, Op1, Instruction::And)) in simplifyAndInst() local
2158 if (Value *V = simplifyAndOrOfCmps(Q, Op0, Op1, true)) in simplifyAndInst() local
2162 if (Value *V = in simplifyAndInst() local
2167 if (Value *V = expandCommutativeBinOp(Instruction::And, Op0, Op1, in simplifyAndInst() local
2172 if (Value *V = expandCommutativeBinOp(Instruction::And, Op0, Op1, in simplifyAndInst() local
2187 if (Value *V = in simplifyAndInst() local
2195 if (Value *V = in simplifyAndInst() local
2260 if (Value *V = simplifyByDomEq(Instruction::And, Op0, Op1, Q, MaxRecurse)) in simplifyAndInst() local
2389 if (Value *V = simplifyLogicOfAddSub(Op0, Op1, Instruction::Or)) in simplifyOrInst() local
2434 if (Value *V = simplifyAndOrOfCmps(Q, Op0, Op1, false)) in simplifyOrInst() local
2446 if (Value *V = in simplifyOrInst() local
2451 if (Value *V = expandCommutativeBinOp(Instruction::Or, Op0, Op1, in simplifyOrInst() local
2466 if (Value *V = in simplifyOrInst() local
2500 if (Value *V = threadBinOpOverPHI(Instruction::Or, Op0, Op1, Q, MaxRecurse)) in simplifyOrInst() local
2524 if (Value *V = simplifyByDomEq(Instruction::Or, Op0, Op1, Q, MaxRecurse)) in simplifyOrInst() local
2585 if (Value *V = simplifyLogicOfAddSub(Op0, Op1, Instruction::Xor)) in simplifyXorInst() local
2589 if (Value *V = in simplifyXorInst() local
2602 if (Value *V = simplifyByDomEq(Instruction::Xor, Op0, Op1, Q, MaxRecurse)) in simplifyXorInst() local
2619 static Value *extractEquivalentCondition(Value *V, CmpInst::Predicate Pred, in extractEquivalentCondition()
2638 static bool isAllocDisjoint(const Value *V) { in isAllocDisjoint()
2684 auto isByValArg = [](const Value *V) { in haveNonOverlappingStorage()
2798 auto *F = [](Value *V) -> Function * { in computePointerICmp()
2876 auto ExtractNotLHS = [](Value *V) -> Value * { in simplifyICmpOfBools()
3294 if (Value *V = simplifyICmpInst(Pred, A == RHS ? B : A, in simplifyICmpWithBinOp() local
3301 if (Value *V = in simplifyICmpWithBinOp() local
3330 if (Value *V = simplifyICmpInst(Pred, Y, Z, Q, MaxRecurse - 1)) in simplifyICmpWithBinOp() local
3336 if (Value *V = simplifyICmpWithBinOpOnLHS(Pred, LBO, RHS, Q, MaxRecurse)) in simplifyICmpWithBinOp() local
3340 if (Value *V = simplifyICmpWithBinOpOnLHS( in simplifyICmpWithBinOp() local
3407 if (Value *V = simplifyICmpInst(Pred, LBO->getOperand(0), in simplifyICmpWithBinOp() local
3415 if (Value *V = simplifyICmpInst(Pred, LBO->getOperand(0), in simplifyICmpWithBinOp() local
3422 if (Value *V = simplifyICmpInst(Pred, LBO->getOperand(0), in simplifyICmpWithBinOp() local
3433 if (Value *V = simplifyICmpInst(Pred, LBO->getOperand(0), in simplifyICmpWithBinOp() local
3493 if (Value *V = extractEquivalentCondition(LHS, EqP, A, B)) in simplifyICmpWithMinMax() local
3495 if (Value *V = extractEquivalentCondition(RHS, EqP, A, B)) in simplifyICmpWithMinMax() local
3499 if (Value *V = simplifyICmpInst(EqP, A, B, Q, MaxRecurse - 1)) in simplifyICmpWithMinMax() local
3507 if (Value *V = extractEquivalentCondition(LHS, InvEqP, A, B)) in simplifyICmpWithMinMax() local
3509 if (Value *V = extractEquivalentCondition(RHS, InvEqP, A, B)) in simplifyICmpWithMinMax() local
3513 if (Value *V = simplifyICmpInst(InvEqP, A, B, Q, MaxRecurse - 1)) in simplifyICmpWithMinMax() local
3567 if (Value *V = extractEquivalentCondition(LHS, EqP, A, B)) in simplifyICmpWithMinMax() local
3569 if (Value *V = extractEquivalentCondition(RHS, EqP, A, B)) in simplifyICmpWithMinMax() local
3573 if (Value *V = simplifyICmpInst(EqP, A, B, Q, MaxRecurse - 1)) in simplifyICmpWithMinMax() local
3581 if (Value *V = extractEquivalentCondition(LHS, InvEqP, A, B)) in simplifyICmpWithMinMax() local
3583 if (Value *V = extractEquivalentCondition(RHS, InvEqP, A, B)) in simplifyICmpWithMinMax() local
3587 if (Value *V = simplifyICmpInst(InvEqP, A, B, Q, MaxRecurse - 1)) in simplifyICmpWithMinMax() local
3687 if (Value *V = simplifyICmpOfBools(Pred, LHS, RHS, Q)) in simplifyICmpInst() local
3692 if (Value *V = simplifyICmpWithZero(Pred, LHS, RHS, Q)) in simplifyICmpInst() local
3695 if (Value *V = simplifyICmpWithConstant(Pred, LHS, RHS, Q.IIQ)) in simplifyICmpInst() local
3732 if (Value *V = simplifyICmpInst(Pred, SrcOp, in simplifyICmpInst() local
3739 if (Value *V = simplifyICmpInst(Pred, SrcOp, RI->getOperand(0), Q, in simplifyICmpInst() local
3751 if (Value *V = in simplifyICmpInst() local
3776 if (Value *V = simplifyICmpInst(ICmpInst::getUnsignedPredicate(Pred), in simplifyICmpInst() local
3821 if (Value *V = simplifyICmpInst(Pred, SrcOp, RI->getOperand(0), Q, in simplifyICmpInst() local
3845 if (Value *V = in simplifyICmpInst() local
3879 if (Value *V = simplifyICmpInst(ICmpInst::ICMP_SLT, SrcOp, in simplifyICmpInst() local
3888 if (Value *V = simplifyICmpInst(ICmpInst::ICMP_SGE, SrcOp, in simplifyICmpInst() local
3907 if (Value *V = simplifyICmpWithBinOp(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyICmpInst() local
3910 if (Value *V = simplifyICmpWithMinMax(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyICmpInst() local
3913 if (Value *V = simplifyICmpWithDominatingAssume(Pred, LHS, RHS, Q)) in simplifyICmpInst() local
3934 if (Value *V = threadCmpOverSelect(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyICmpInst() local
3940 if (Value *V = threadCmpOverPHI(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyICmpInst() local
4150 if (Value *V = threadCmpOverSelect(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyFCmpInst() local
4156 if (Value *V = threadCmpOverPHI(Pred, LHS, RHS, Q, MaxRecurse)) in simplifyFCmpInst() local
4167 static Value *simplifyWithOpReplaced(Value *V, Value *Op, Value *RepOp, in simplifyWithOpReplaced()
4194 [&](Value *V) { return V == Op ? RepOp : V; }); in simplifyWithOpReplaced()
4280 Value *llvm::simplifyWithOpReplaced(Value *V, Value *Op, Value *RepOp, in simplifyWithOpReplaced()
4419 if (Value *V = simplifyCmpSelOfMaxMin(CmpLHS, CmpRHS, Pred, TrueVal, FalseVal)) in simplifySelectWithICmpCond() local
4449 if (Value *V = simplifySelectBitTest(TrueVal, FalseVal, X, Y, in simplifySelectWithICmpCond() local
4488 if (Value *V = in simplifySelectWithICmpCond() local
4699 if (Value *V = in simplifySelectInst() local
4703 if (Value *V = simplifySelectWithFCmp(Cond, TrueVal, FalseVal, Q)) in simplifySelectInst() local
4706 if (Value *V = foldSelectWithBinaryOp(Cond, TrueVal, FalseVal)) in simplifySelectInst() local
4754 all_of(Indices, [](const auto *V) { return match(V, m_Zero()); })) in simplifyGEPInst()
4760 any_of(Indices, [](const auto *V) { return isa<PoisonValue>(V); })) in simplifyGEPInst()
4768 isa<ScalableVectorType>(SrcTy) || any_of(Indices, [](const Value *V) { in simplifyGEPInst()
4853 !all_of(Indices, [](Value *V) { return isa<Constant>(V); })) in simplifyGEPInst()
5335 if (any_of(Ops, [](Value *V) { return match(V, m_Poison()); })) in simplifyFPOp()
6107 if (Value *V = foldMinMaxSharedOp(IID, Op0, Op1)) in simplifyBinaryIntrinsic() local
6109 if (Value *V = foldMinMaxSharedOp(IID, Op1, Op0)) in simplifyBinaryIntrinsic() local
6392 if (Value *V = in simplifyIntrinsic() local
6403 if (Value *V = simplifyFPOp({Op0, Op1, Op2}, {}, Q, fp::ebIgnore, in simplifyIntrinsic() local
6524 if (Value *V = tryConstantFoldCall(Call, Q)) in simplifyCall() local
6537 if (Value *V = tryConstantFoldCall(Call, Q)) in simplifyConstrainedFPCall() local
6592 if (llvm::all_of(NewOps, [](Value *V) { return isa<Constant>(V); })) { in simplifyInstructionWithOperands()
6595 [](Value *V) { return cast<Constant>(V); }); in simplifyInstructionWithOperands()